XBackBone icon indicating copy to clipboard operation
XBackBone copied to clipboard

Time limited feature / Auto delete after selected time

Open Bartek200219 opened this issue 4 years ago • 2 comments

Can you add a dropdown list in the upload page to select the time after which the file will be deleted? It can also be a global setting that users or/and admins can specify themselves.

Bartek200219 avatar Sep 26 '20 15:09 Bartek200219

It's possible to add an expiration date, but for actually delete the file a cron is required. If the goal is only hide (and delete if requested) can be done, but if it's about "saving space" and actually implement a cron-based system, I don't think I want to go in that way.

sergix44 avatar Oct 09 '20 17:10 sergix44

I ran into the same problem and I could suggest a "lazy" solution that I adopted. We have created a special class for cron activities that is executed first before anything else, so if the file should be deleted, the cron will be executed before anything else, and when the actual execution starts, the file would be eliminated. But this does not cover direct access to the file, which in my case was not a problem because most of the cache files were deleted.

BaxAndrei avatar Jan 05 '21 12:01 BaxAndrei