Describe the bug
When we add a document or image with the same name in the frontend, it is successfully displayed. However, on the backend, only one image or document with that name was stored (likely overwritten). When trying to delete this file or image, it is removed successfully. However, when attempting to delete the other one, an error occurs, stating that this document or image does not exist. This is because there was only one in the backend and it had already been deleted the first time.
To Reproduce
Steps to reproduce the behavior:
add an image or document
add the same image or document
go to the page that lists
delete one of these images
now delete the other one and you will see the error
Describe the bug When we add a document or image with the same name in the frontend, it is successfully displayed. However, on the backend, only one image or document with that name was stored (likely overwritten). When trying to delete this file or image, it is removed successfully. However, when attempting to delete the other one, an error occurs, stating that this document or image does not exist. This is because there was only one in the backend and it had already been deleted the first time.
To Reproduce Steps to reproduce the behavior: