#12446: multipart/mixed in multipart/form-data
-------------------------------------------+--------------------------------
          Reporter:  ssssssssssss          |         Owner:  nobody         
            Status:  new                   |     Milestone:                 
         Component:  File uploads/storage  |       Version:  1.1            
        Resolution:                        |      Keywords:  multipart/mixed
             Stage:  Accepted              |     Has_patch:  0              
        Needs_docs:  0                     |   Needs_tests:  0              
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by russellm):

  * stage:  Unreviewed => Accepted

Old 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--
>     """

New 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--
     """
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12446#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to