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)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 44464

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.
Adding keywords and confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: html4, patch
I think this is a duplicate of bug 44464.
*** This bug has been marked as a duplicate of 44464 ***
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Mass removing self from CC list.
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.

Attachment

General

Creator:
Created:
Updated:
Size: