1👍
✅
As Daniel Roseman wrote, uploaded files end up in request.FILES
. One more thing – from jQuery documentation:
As of jQuery 1.6 you can pass false to tell jQuery to not set any content type header.
and Django documentation states:
Note that request.FILES will only contain data if the request method was POST and the form that posted the request has the attribute enctype=”multipart/form-data”. Otherwise, request.FILES will be empty.
Source:stackexchange.com