[BUG] Deleting an asset and then re-adding an asset with the same name fails
RIP-flash opened this issue · 2 comments
Describe the bug
Deleting an asset from the library and then re-uploading an asset with the same filename (from the same path) does not add the asset to the library.
To Reproduce
- Upload an asset with filename 123.png via the Asset Library "Upload Assets" button.
- Delete asset 123.png via the delete button in the Asset Library.
- Attempt to upload an asset with filename 123.png (from the same path as the asset in step 1).
- Observe that the asset does not get added to the library.
Expected behavior
I should be able to delete asset 123.png, then re-upload that same asset and have it show up in the library.
Desktop (please complete the following information):
- OS: GNU/Linux Debian
- Version: Wick Editor 1.19 Desktop AppImage
Additional context
The re-added asset is added to the library (i.e. it works as expected) if I upload an asset with a different filename after the deletion but before the re-upload. Example: I delete 123.png from the asset library, then upload abc.png, then re-upload 123.png. This works.
Thanks for the report! Will take a look at this for 1.20!
submitted a pull request for this one.