왜이 대답이 나를 위해 작동하지 않습니까?자동 제출 양식이 작동하지 않는 이유는 무엇입니까?
Automatically submitting a form when an upload file is chosen
내 코드 :
<form>
<input id="id_image" name="image" onchange="this.form.submit();" type="file">
<input id="send" type="submit" value="submit" name="submit">
</form>
사용자가 잘못된 파일을 선택하면 어떻게됩니까? –
그러면 "잘못된"파일이 업로드됩니다. 어쩌면 취소 메커니즘입니까? – Philip007