This may be a question with a very simple answer, however I couldn't come across to one on the internet.
I am writing a Django application. I have a form with an unrequired ImageField. After the user has submitted the form (with an image), if the form is invalid, on the serverside I populate the form with the request data and files (eg: form = FooForm(request.DATA, request.FILES, instance = foo
)and send the response back to the client.
On the client the other fields are displayed OK, but the image field doesn't point to anywhere. As the image field is not required, the user usually overlooks the situation and resubmits the form without the image.
I am lost on even whether this is an issue or this is how it is expected to work anyway. If this is an issue please state so that I provide more details.