Opened 4 years ago
Last modified 4 years ago
#32004 closed Cleanup/optimization
Improve documentation of request.FILES — at Version 2
Reported by: | Janos Roden | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 3.1 |
Severity: | Normal | Keywords: | upload |
Cc: | Janos Roden | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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 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.
Change History (2)
comment:1 by , 4 years ago
Cc: | added |
---|
comment:2 by , 4 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.