Opened 16 years ago
Last modified 12 years ago
#12446 closed
multipart/mixed in multipart/form-data — at Version 3
| Reported by: | ssssssssssss | Owned by: | nobody |
|---|---|---|---|
| Component: | File uploads/storage | Version: | 1.1 |
| Severity: | Normal | Keywords: | multipart/mixed |
| Cc: | Tom Christie | Triage Stage: | Accepted |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The example is 'shamelessly' taken from RFC 1867
Trying to upload multiple files in one field name of form which seems will be supported by mozilla in the near future ( correct me if I'm wrong ). There is no error occurs, but I can't get files via request.FILES.
"""
Content-type: multipart/form-data, boundary=AaB03x
--AaB03x
content-disposition: form-data; name="field1"
Joe Blow
--AaB03x
content-disposition: form-data; name="pics"
Content-type: multipart/mixed, boundary=BbC04y
--BbC04y
Content-disposition: attachment; filename="file1.txt"
Content-Type: text/plain
... contents of file1.txt ...
--BbC04y
Content-disposition: attachment; filename="file2.gif"
Content-type: image/gif
Content-Transfer-Encoding: binary
...contents of file2.gif...
--BbC04y--
--AaB03x--
"""
Change History (3)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
| Description: | modified (diff) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
Ref to the new feature to allow multiple files to be selected for a single file input: http://hacks.mozilla.org/2009/12/multiple-file-input-in-firefox-3-6/