Skip to content

Feature Request: Optional expiration date for uploads #79

@ZeroKnight

Description

@ZeroKnight

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions