[Fixed]-How to use a form to change the file of a Django ImageField?

1👍

From the file upload docs:

Note that request.FILES will only contain data if the request method was POST and the <form> that posted the request has the attribute enctype="multipart/form-data". Otherwise, request.FILES will be empty.

Leave a comment