Re: How to support Content-Type: multipart/mixed

71 views
Skip to first unread message

Wan Li

unread,
Dec 25, 2009, 2:15:04 AM12/25/09
to django...@googlegroups.com
I also take the example 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 still 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--
    """

Wan Li

unread,
Dec 25, 2009, 12:35:43 AM12/25/09
to django...@googlegroups.com
Hi,

I'm posting the "multipart/mixed" type msg to django server,but seems django can't handle it well.
Any way to support it?

Thanks!

--
>: ~
Reply all
Reply to author
Forward
0 new messages