1 Answers1

1

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)
hanspeters205
  • 381
  • 2
  • 6