[Answer]-ImageField doesnt work

1👍

The first thing to check is the enctype attribute in your template. From the 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