Problem/Motivation
After re-upload different image with same name "image.jpg" (not important extension). Preview not showing valid image (showing first image)
Steps to reproduce
Need two image with same name with same extension
folder_1/image.jpg (img_1 short name to explain)
folder_2/image.jpg (img_2)
1) Create new node
2) Upload img_1 first time, preview is showing valid
3) Remove img_1, and after this upload img_2, preview is showing of first img_1.
But after save is valid image is showing in edit node.
Notes: After upload second image preview name not match fileUri, but it match preview file name.
Example: After upload image name is: image_0.jpg, re-upload image.jpg (img_2) name is image_1 but in preview is used image_0.jpg.
Images is attached:
1) First image is img_1 with same name
2) Re upload other image with same name, we see that preview is showing old
3) After save, back to edit, preview is valid and filename is changed
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | img_3_after_save_valid_preview_edit.png | 400.81 KB | pavelculacov |
| #2 | img_2_reupload.png | 399.98 KB | pavelculacov |
| #2 | img_1_first_upload.png | 297.93 KB | pavelculacov |
Comments
Comment #2
pavelculacov commentedComment #3
larowlanThanks for reporting