#32004: Improve documentation of request.FILES
------------------------------------------------+------------------------
               Reporter:  Janos Roden           |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Documentation         |        Version:  3.1
               Severity:  Normal                |       Keywords:  upload
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Regarding `request.FILES` and `multipart/form-data` requests I think it
 worth to mention that the `filename` parameter of the `content-
 disposition` header of the part is
 
[https://github.com/django/django/blob/master/django/http/multipartparser.py#L625
 crutial] to handle the part as a file.

 I used a low level library to generate requests and I thought Django will
 use a temporary file (and file name) for this content.
 Of course after I found out how it works it's make sense, but read about
 it in the docs would have help me to fix my code much quicker.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32004>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.71c0a4cb9b78d42006de5c27dc9ff06d%40djangoproject.com.

Reply via email to