1👍
✅
The first thing to check is the enctype
attribute in your template. From the docs:
Note that
request.FILES
will only contain data if the request method wasPOST
and the<form>
that posted the request has the attributeenctype="multipart/form-data"
. Otherwise,request.FILES
will be empty.
Source:stackexchange.com