0👍
✅
Try the following instead of writing chunk by chunk:
dest.write(ufile)
The ufile object is a string, not a file handle.
2👍
Files are not in request.POST
, they are in request.FILES
.
But you probably want to read the file uploads documentation.
- [Answered ]-Printing Arabic characters in python/django
- [Answered ]-Django – Implementing user actions with no login, using only GET parameters
0👍
Had the same issue..
You should delete “Content-type” from request header, and your file will appear in request.FILES
, then you can work with <TemporaryUploadedFile>
I think this answer not relevant for @jaysonpryde, but maybe will help someone else.. 🙂
- [Answered ]-Django – Add a field to a form that not should be in a model
- [Answered ]-How to remove specific directory names from path list
- [Answered ]-Is it possible to pause and resume an http file upload?
Source:stackexchange.com