upload_example
upload_example copied to clipboard
Image property is reset, when validation fails
To reproduce:
- Edit object with a image property
- Select a new image to upload
- Make another property invalid so that validation will fail upon saving
- save and fix the other property
- save again
The object now has the original image attached.
This happens because the file reference is not persisted when validation fails (which is good) and the original file reference identifier is stored in the form (also good) but no reference to the newly uploaded image is kept (this is the bug)
Any news here?