Bug 21645 - REGRESSION (r37469-r37605): File Input not Uploaded in Multipart/Form-data Form
Summary: REGRESSION (r37469-r37605): File Input not Uploaded in Multipart/Form-data Form
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Major
Assignee: Darin Adler
URL: https://www.jakks.net/test.php
Keywords: Regression
: 21707 21730 21734 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-16 10:34 PDT by john
Modified: 2020-05-10 10:54 PDT (History)
8 users (show)

See Also:


Attachments
test (20 bytes, text/plain)
2008-10-18 19:05 PDT, Darin Adler
no flags Details
patch (4.91 KB, patch)
2008-10-18 19:09 PDT, Darin Adler
mitz: review+
Details | Formatted Diff | Diff
test (10 bytes, text/plain)
2008-12-22 15:48 PST, Darin Adler
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2008-10-16 10:34:57 PDT
The $_FILES variable in php is not getting populated at all when a multipart/form-data ecntype form is submitted.  It works fine in the shipped version of Safari 3.1.2, but the nightly build fails to populate it (which tells me the form is not being submitted properly?).
Comment 1 Robert Blaut 2008-10-16 22:47:08 PDT
Last working nightly r37469. Confirmed. I saw the bug for the first time in Textpattern control panel during trying uploading file with multipart/form-data form.

Possible duplication: bug 21518.
Comment 2 Robert Blaut 2008-10-17 10:23:53 PDT
Possible duplication: bug 21707
Comment 3 Robert Blaut 2008-10-18 03:51:15 PDT
Possible duplication: bug 21730
Comment 4 Timothy Hatcher 2008-10-18 17:33:24 PDT
This prevents uploading patches to Bugzilla too. Sam thinks it was a change Darin did.
Comment 5 Darin Adler 2008-10-18 18:52:20 PDT
Should be very quick to fix.
Comment 6 Darin Adler 2008-10-18 19:05:20 PDT
Created attachment 24497 [details]
test
Comment 7 Darin Adler 2008-10-18 19:09:11 PDT
Created attachment 24498 [details]
patch
Comment 8 mitz 2008-10-18 19:11:54 PDT
Comment on attachment 24498 [details]
patch

+        This "two at a time" a confusing way to do things, which explains why I got

Typo (missing "is"?).

r=me
Comment 9 Darin Adler 2008-10-18 19:12:57 PDT
http://trac.webkit.org/changeset/37685
Comment 10 Mark Rowe (bdash) 2008-10-18 22:28:37 PDT
*** Bug 21707 has been marked as a duplicate of this bug. ***
Comment 11 Mark Rowe (bdash) 2008-10-18 22:28:44 PDT
*** Bug 21734 has been marked as a duplicate of this bug. ***
Comment 12 Mark Rowe (bdash) 2008-10-18 22:29:10 PDT
*** Bug 21730 has been marked as a duplicate of this bug. ***
Comment 13 john 2008-12-22 09:49:02 PST
It appears that this bug has reappeared in in r39433.  The $_FILES variable in php is not getting populated on form submit if no files are chosen for the file form elements.  Works fine in the current release of Safari and Firefox, but is broken in the nightly build.
Comment 14 Darin Adler 2008-12-22 12:39:44 PST
I understand that a bug was introduced by the new check-in, but I think that reopening this old bug report wasn't the best way to deal with that. Even though the symptom is the same.
Comment 15 Darin Adler 2008-12-22 12:41:19 PST
Nico, George, it looks like the refactoring broke file uploading.
Comment 16 George Staikos 2008-12-22 14:58:37 PST
Oops.  We could back out, or fix it later today.  Which do you prefer?
Comment 17 Nikolas Zimmermann 2008-12-22 15:11:16 PST
(In reply to comment #16)
> Oops.  We could back out, or fix it later today.  Which do you prefer?
> 

I'll investigate in the problem. We clearly need a layout test (!) - it bothers me stuff like that is not covered by layout tests.
Comment 18 Darin Adler 2008-12-22 15:47:39 PST
(In reply to comment #17)
> I'll investigate in the problem. We clearly need a layout test (!) - it bothers
> me stuff like that is not covered by layout tests.

Me too.

I'm hoping this is quick to fix -- we probably don't need to back out if we can figure it out today.
Comment 19 Darin Adler 2008-12-22 15:48:52 PST
Created attachment 26217 [details]
test
Comment 20 Darin Adler 2008-12-22 15:52:06 PST
Hmm, a single file upload to bugzilla just worked for me. So this new bug does not have the same scope as the old one. Could someone please file a new bug report instead of reopening this one, since the new bug seems quite different from the old?
Comment 21 Nikolas Zimmermann 2008-12-22 16:22:36 PST
(In reply to comment #20)
> Hmm, a single file upload to bugzilla just worked for me. So this new bug does
> not have the same scope as the old one. Could someone please file a new bug
> report instead of reopening this one, since the new bug seems quite different
> from the old?
> 

I think I found the bug, I'll file a new seperated one.
Comment 22 Nikolas Zimmermann 2008-12-22 17:01:45 PST
(In reply to comment #21)
> (In reply to comment #20)
> > Hmm, a single file upload to bugzilla just worked for me. So this new bug does
> > not have the same scope as the old one. Could someone please file a new bug
> > report instead of reopening this one, since the new bug seems quite different
> > from the old?
> > 
> 
> I think I found the bug, I'll file a new seperated one.

Bug 22971 will cover this new seperated issue. Let's move there.