Wicklets/wick-editor

[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

  1. Upload an asset with filename 123.png via the Asset Library "Upload Assets" button.
  2. Delete asset 123.png via the delete button in the Asset Library.
  3. Attempt to upload an asset with filename 123.png (from the same path as the asset in step 1).
  4. 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.