[Webkit-unassigned] [Bug 9715] New: Hiding an input=file control in a submit button's onclick handler will cause the upload to fail

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Jul 3 11:42:52 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9715

           Summary: Hiding an input=file control in a submit button's
                    onclick handler will cause the upload to fail
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P3
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: macdome at opendarwin.org


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>


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list