Closed Bug 680423 Opened 13 years ago Closed 13 years ago

Filename not set in multipart request when sending Blob with FormData

Categories

(Firefox :: General, defect)

6 Branch
x86
All
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 649150

People

(Reporter: jayarjo, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1

Steps to reproduce:

Trying out chunked file upload used mozSlice to get a Blob and FormData to upload the resulting chunk along with some multipart parameters. According to specs FormData should be able to upload Blobs. 


Actual results:

Got "UPLOAD_ERR_NO_FILE (Value: 4; No file was uploaded.)" error on server side (PHP backend).

Examining the headers I noticed that Firefox (6.0) didn't set Filename and left it blank:

Content-Disposition: form-data; name="file"; filename=""\r\n



Expected results:

According to specs Filename field should be set it to "blob" (http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#the-append-method)
I checked today in Firefox 7.0b1 and bug is gone - filename gets properly set to blob and server receives file as expected.

Not sure if it is the place to ask such question, but not sure where to look for it. Core developers probably will have quick answer. How do you treat such bugfixes, I mean 6.0 just came out and viola - it has some bug. Do you guys fix it in minor version updates or postpone for next major release? Can we expect Firefox 6.0 getting this particular issue fixed in some coming minor version update?
Severity: normal → major
OS: Mac OS X → All
(In reply to Davit Barbakadze from comment #1)
> Not sure if it is the place to ask such question, but not sure where to look
> for it. Core developers probably will have quick answer. How do you treat
> such bugfixes, I mean 6.0 just came out and viola - it has some bug. Do you
> guys fix it in minor version updates or postpone for next major release? Can
> we expect Firefox 6.0 getting this particular issue fixed in some coming
> minor version update?

It will be fixed in 7, which will be released in 6 weeks on September 27th.  The only things that we issue minor updates for (e.g. a 6.0.1) are zero-day security flaws or other super-critical bugs (e.g. we did a 5.0.1 for a workaround to a bug in Lion that caused lots of crashes.)
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.