1

There are 1 best solutions below

0
hanspeters205 On

Show your code. Once the views.py, the models.py and your html. Here are my two best guesses:

1 verify you have the enctype declared in the html tag

<form action="" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{form.as_p}}
    <button type="submit">Save</button>
</form>

2 verify you request includes request.FILES

form = YourForm(request.POST, request.FILES, instance=instance)