Closed richard-jones closed 10 years ago
This issue also crops up when a user tries to edit an advert.
If there is an error in the form while submitting, there is no way to keep the upload file. All modern browsers do not allow prepopulating of the upload field (for obvious security reasons) and the image does not get uploaded until the form is validated. So in the case of the form validation failure, I see no other way except to have users re-select the image they wish to upload.
When submitting a new advert, errors in the form no longer result in lost data (except in the upload field as discussed above). When editing an advert, the user is presented with the current advert image and the opportunity to upload a new one. The subject field now displays the data stored.
I'm going to suggest some tweaks to how the image placeholder works, so just re-opening this to remind myself. Will fill in the details when I've merged the generalised sale branch back into the master
The following fields need to be re-entered when the create form fails: