XBackBone
XBackBone copied to clipboard
Time limited feature / Auto delete after selected time
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.
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.
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.