Automatically remove orphan files

This commit is contained in:
2025-04-09 21:51:23 +02:00
parent 6f18aafc33
commit 7c04acaf4b
5 changed files with 15 additions and 5 deletions

View File

@ -21,3 +21,6 @@ pub mod sessions {
/// Maximum uploaded file size (15MB)
pub const MAX_UPLOAD_FILE_SIZE: usize = 15 * 1024 * 1024;
/// Minimum elapsed time before a file can be deleted by garbage collector (2 hours)
pub const MIN_FILE_LIFETIME: u64 = 3600 * 2;