#32004: Improve documentation of request.FILES
-------------------------------------+-------------------------------------
Reporter: Janos Roden | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: upload | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Janos Roden:
Old description:
> 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.
New description:
Regarding `request.FILES` and `multipart/form-data` requests I think it
worth to mention in the doc 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
crucial] 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#comment:2>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.e1767f2d3b86870a9a8dad4d44ea28c8%40djangoproject.com.