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