Opened 15 years ago

Last modified 11 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 Russell Keith-Magee)

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 Karen Tracey, 15 years ago

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/

comment:2 by wanliyou@…, 15 years ago

Even more, django can't handle multipart/mixed content directly

comment:3 by Russell Keith-Magee, 15 years ago

Description: modified (diff)
Triage Stage: UnreviewedAccepted
Note: See TracTickets for help on using tickets.
Back to Top