-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Affected component
modules/prettyblocks/_dev/src/components/form/FileUpload.vue
Current behavior
- Add a block that contains a fileupload field.
- Upload an image and save the block – the image is correctly stored.
- Re-open the block, click the trash icon to remove the image.
- Save the block again.
The previously deleted image (or a placeholder) is saved back automatically – the field is never persisted as empty.
Expected behavior
After deleting the file and saving, the field should remain empty (no image stored and no placeholder URL persisted).
Impact
It is currently impossible to make a fileupload field optional. Once a file has been uploaded, the user cannot revert to “no file”.
Metadata
Metadata
Assignees
Labels
No labels