Bug 28270 - Multiple <input type=file> fails to upload
Summary: Multiple <input type=file> fails to upload
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh Intel OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2009-08-13 12:06 PDT by Glenn Henshaw
Modified: 2009-08-27 05:44 PDT (History)
0 users

See Also:

cannot reproduce (229 bytes, text/html)
2009-08-13 14:42 PDT, Alexey Proskuryakov
no flags Details
cannot reproduce (258 bytes, text/plain)
2009-08-13 14:49 PDT, Alexey Proskuryakov
no flags Details
HTML test case (2.14 KB, text/html)
2009-08-13 14:58 PDT, Glenn Henshaw
no flags Details
Sample from WebKit after hitting submit (6.90 KB, text/plain)
2009-08-13 15:05 PDT, Glenn Henshaw
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Henshaw 2009-08-13 12:06:26 PDT
If a form has multiple <input type=file> elements and files are not assigned to all of them, clicking the submit button will cause the program to hang.

This fails in Safari 4.0.3 and the current WebKit nightly (46919). This is not a problem in Safari 3.2 (4525). Unfortunately, I don't have other builds to test with.
Comment 1 Glenn Henshaw 2009-08-13 12:24:55 PDT
This works properly in Safari 4.0.2.
Comment 2 Alexey Proskuryakov 2009-08-13 14:42:26 PDT
Created attachment 34789 [details]
cannot reproduce

I cannot reproduce this. Do you have an example page where this happens? Do you have any "Safari enhancers" installed?

Please attach a sample made with Activity Monitor utility while Safari is hung (double-click Safari in Activity Monitor process list, then click Sample button).
Comment 3 Alexey Proskuryakov 2009-08-13 14:49:51 PDT
Created attachment 34792 [details]
cannot reproduce

Fixed some mistakes in original test, but still cannot reproduce.
Comment 4 Glenn Henshaw 2009-08-13 14:58:40 PDT
Created attachment 34793 [details]
HTML test case

This page demonstrates the problem. Select a file at only one of the file selectors (say, Certificate), and leave the other empty. Hit the "save" button.
Comment 5 Glenn Henshaw 2009-08-13 15:05:59 PDT
Created attachment 34794 [details]
Sample from WebKit after hitting submit

from Webkit r47189
Comment 6 Glenn Henshaw 2009-08-14 16:48:38 PDT
Does the test case fail for you? Do you need any more information?
Comment 7 Glenn Henshaw 2009-08-27 05:44:39 PDT