2👍
✅
There are two issues here.
Firstly, your view needs to pass request.FILES
as well as request.POST
to the form.
Secondly, your form element in the template needs to include enctype="multipart/form-data"
.
Source:stackexchange.com