-
Notifications
You must be signed in to change notification settings - Fork 49
Image nulled when reloading form because of validation and uploading at the same time #3
Comments
This should be fixed with the latest commit. Please give feedback if it also works for you. |
It does work, but creates another problem: The image field is not being nulled, but he file which has been uploaded gets lost. The old relation is kept and i have to upload the file again. |
Can you provide a step by step instruction to reproduce? |
Ah sorry, forgot to add a configuration file in the last commit. Should be working now with latest master |
Still the same problem: |
True. I created #4 for this bug. I will not be able to work on that with the next 5-6 weeks. Pull requests are welcome though ;) |
When i edit an existing example object, do remove the title so that the field is blank and upload a new image at the same time, everythink works fine in the edit form:
The uploaded image is placed as preview and will be adopted if i fill out the title this time and save the object. But in the meanwhile the image field has been nulled in the database so that there is no image anymore.
For many cases in production this can be unwished.
PS: Great work, thanks!
The text was updated successfully, but these errors were encountered: