[Django]-Django FileField upload is not working for me

75👍

✅

You need to include the files when creating the form

oplinkform = oplinkform(request.POST, request.FILES)

Also make sure that your form has the correct enctype

<form enctype="multipart/form-data"></form>

Leave a comment