3👍
✅
It may be postman bug. try to remove Content-Type
from request header in postman before sending request.
Sometime postman doesn’t set correct header(content type).that may be the problem.
1👍
How about django’s request.FILES instead of request.data?? Django Docs File Uploads says
When Django handles a file upload, the file data ends up placed in request.FILES..
- [Django]-How to place links in django templates
- [Django]-Why User model has type string?
- [Django]-How to use ListSerializer with a ModelSerializer?
- [Django]-Django: nested custom template tags
Source:stackexchange.com