From 2a90d0ff8d4336850a450f749140e2df2e94fc56 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 10 Sep 2022 17:23:02 +0200 Subject: Upload files --- src/config.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 6449a3f..5783656 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1 +1,3 @@ pub static PAGE_LIMIT: i64 = 20; +pub const MAX_UPLOAD_FILE_SIZE: u64 = 1024 * 1024; // 1 MB +pub const SAVE_FILE_BASE_PATH: &str = "./uploads"; -- cgit v1.2.3-71-g8e6c