kevinanielsen / go-fast-cdn

A fast and easy-to-use CDN, built with Go.
https://kevinanielsen.github.io/go-fast-cdn/
MIT License
107 stars 23 forks source link

Error deleting files and images #122

Closed Caixetadev closed 5 months ago

Caixetadev commented 5 months ago

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:

  1. add an image or document
  2. add the same image or document
  3. go to the page that lists
  4. delete one of these images
  5. now delete the other one and you will see the error
Caixetadev commented 5 months ago

123