Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
An option to set an expiration date for uploaded files that, once reached, causes the file to be deleted. If implemented per-upload, this would be useful for uploads that are meant to be temporary or not meant for long-term storage, i.e. quickly sending a one-off file to one or a few people. I could envision this as an optional date field/picker or (even simpler) a dropdown menu with preset durations like "1 Hour", "3 Hours", "1 Day", "1 Week", etc.
If implemented as an optional global policy for all uploads, an environment variable like HOURS_BEFORE_EXPIRE or FILE_EXPIRE_HOURS or similar would be sufficient. Setting an expiration for all files would be useful for using DumbDrop exclusively as a "drop-box" for temporary sharing or for those that are conscious about storage space.
Describe alternatives you've considered
Cleaning uploads could be done a plethora of ways. Off the top of my head:
- Manually :)
- cron jobs/systemd timers
- Scripts that backup+delete beyond a certain date
This could easily be out of scope (not dumb enough) for DumbDrop, and that's fine.
Additional context
N/A
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
An option to set an expiration date for uploaded files that, once reached, causes the file to be deleted. If implemented per-upload, this would be useful for uploads that are meant to be temporary or not meant for long-term storage, i.e. quickly sending a one-off file to one or a few people. I could envision this as an optional date field/picker or (even simpler) a dropdown menu with preset durations like "1 Hour", "3 Hours", "1 Day", "1 Week", etc.
If implemented as an optional global policy for all uploads, an environment variable like
HOURS_BEFORE_EXPIREorFILE_EXPIRE_HOURSor similar would be sufficient. Setting an expiration for all files would be useful for using DumbDrop exclusively as a "drop-box" for temporary sharing or for those that are conscious about storage space.Describe alternatives you've considered
Cleaning uploads could be done a plethora of ways. Off the top of my head:
This could easily be out of scope (not dumb enough) for DumbDrop, and that's fine.
Additional context
N/A