Opened 5 years ago
Last modified 5 years ago
#32004 closed Cleanup/optimization
Improve documentation of request.FILES — at Initial Version
| 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
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 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.
Note:
See TracTickets
for help on using tickets.