1👍
✅
I think you didn’t pass the request.POST
as a parameter to the form. Just passing the request.FILES
won’t make the form understand where’s the accessCode
coming from. So according to django doc, you should:
upload_form = UploadForm(request.POST, request.FILES)
Source:stackexchange.com