Closed
Bug 59216
Opened 26 years ago
Closed 26 years ago
Mozilla should implement HTML 4 multiple files per file upload via multipart/form-data
Categories
(Core :: Layout: Form Controls, enhancement, P3)
Core
Layout: Form Controls
Tracking
()
People
(Reporter: havill, Assigned: rods)
Details
(Keywords: html4)
Attachments
(2 files)
<URL:http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1> shows an
example where more than one file is being uploaded with the same control. In
other words, with the current upload system, it's not possible to POST an
arbitrary number of files... you need a <INPUT type=file> for every file you
want to upload at once.
The attached patch will allow you to send more than one file by allowing the
file upload control to specify multiple filenames, delimited by the system's
path separator (Linux: colon... Windows: semicolon). When more than one file is
specified, it embeds a "multipart/mixed" in the form-data control, and each
Content-Disposition is of "file" with a filename, with the enclosing
multipart/form-data containing just the "name" attribute and no filename.
The patch should be pretty much backwards compatible with previous behavior if
there's only one file in the list.
I haven't patched the "Browse" button yet to allow for selecting more than one
file (yet), so to upload more than one file, you need to enter the path(s)
manually in the entry form... for example: "/tmp/test-1.txt:/tmp/test-2.txt".
In any case, for those that need this type of functionality (which is mentioned
in the HTML 4 standard), here it is.
| Reporter | ||
Comment 1•26 years ago
|
||
Comment 2•26 years ago
|
||
Adding keywords and confirming.
| Reporter | ||
Comment 3•26 years ago
|
||
| Reporter | ||
Comment 5•26 years ago
|
||
*** This bug has been marked as a duplicate of 44464 ***
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Comment 6•24 years ago
|
||
Mass removing self from CC list.
Comment 7•24 years ago
|
||
Now I feel sumb because I have to add back. Sorry for the spam.
You need to log in
before you can comment on or make changes to this bug.
Description
•