Automatically remove orphan files
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user