Bug 9715 - Hiding an input=file control in a submit button's onclick handler will cause the upload to fail
Summary: Hiding an input=file control in a submit button's onclick handler will cause ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-03 11:42 PDT by Eric Seidel (no email)
Modified: 2006-07-03 11:48 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2006-07-03 11:42:51 PDT
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>
Comment 1 Alexey Proskuryakov 2006-07-03 11:48:35 PDT
See also: bug 5196