diced / zipline

A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
https://zipline.diced.sh/
MIT License
1.31k stars 128 forks source link

Bug: Expired photos not working as expected. #556

Closed chrgeorgeson closed 3 months ago

chrgeorgeson commented 3 months ago

What happened?

Summary:

When uploading files to ZipLine (3.7.9) , I set a default 2-week expiration on them. Once the expiration date is reached, the image itself is deleted, but the file metadata remains visible in the Files view. This behavior necessitates additional manual cleanup, which undermines the convenience of the expiration feature.

Steps to Reproduce:

  1. Upload an image to ZipLine with a 2-week expiration setting.
  2. Wait until the expiration date passes.
  3. Observe that the image is deleted, but the file metadata still appears in the Files view.

Observed Behavior:

Expected Behavior:

Once the expiration date is reached, both the image and its metadata should be automatically removed from the Files view without requiring manual intervention.

Attachments:

  1. Screenshot showing the file metadata remaining after the image is deleted r7kufU

  2. Screenshot of the Files view with multiple files where metadata should be removed JURD8Y

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

Firefox, Chromium-based (Chrome, Edge, Brave, Opera, mobile chrome/chromium based, etc)

Zipline Logs

No response

Browser Logs

No response

Additional Info

No response

diced commented 3 months ago

This is expected behavior so far, the file should delete it self after the link gets accessed again. I know this seems kind of dumb but that's the way I originally implemented it. This is changing in v4 though, expired files will get deleted on an interval.

If the file is still not getting deleted after it's link has been accessed then feel free to reopen the issue :)