Opened 14 years ago

Last modified 10 years ago

#12446 closed

multipart/mixed in multipart/form-data — at Initial Version

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

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 (0)

Note: See TracTickets for help on using tickets.
Back to Top