[Webkit-unassigned] [Bug 111255] New: FormData.append should prefer application-specified filename to filename in a File
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 2 10:42:12 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=111255
Summary: FormData.append should prefer application-specified
filename to filename in a File
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://jsbin.com/irefov/1/edit
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: costan at gmail.com
Description snippet from Chrome's bug http://crbug.com/165095
What steps will reproduce the problem?
1. Load the following JSbin -- http://jsbin.com/irefov/1/edit
2. Open the Developer Tools.
3. Click the 'Choose file' button in the <input type="file">, select a (preferably small text) file.
4. Click the XHR to zn-testbed.herokuapp.com' in the Network pane. Click the 'Request' tab, and look at the 'Request payload'
5. Look at the name after "filename=" in the form data.
What is the expected result?
The file name should be "file.name.from.js", as supplied in JavaScript.
What happens instead?
The file name is the name of the file selected in the <input type="file"> UI.
Step 6 in the FormData.append algorithm in the spec says that the 3rd argument should be used as the file name, when given.
http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-formdata-append
I have a failing test for this bug and I'm working on a patch. I will attach the patch as soon as I get it working, hopefully today.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list