Bug 9715
| Summary: | Hiding an input=file control in a submit button's onclick handler will cause the upload to fail | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
| Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P3 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Eric Seidel (no email)
If you hide a form in an onclick handler, the attached file is never actually posted to the server :(
<div id="test">
<form target="iframe" enctype="multipart/form-data" method="post" action="/upload_file">
<input type="file" />
<input type="submit" onclick="document.getElementById('test').style.display='none'" />
</form>
</div>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
See also: bug 5196