From 28d8fa6f1df14a3d8819c7e026ad4ed1b0093887 Mon Sep 17 00:00:00 2001 From: timvisee Date: Tue, 17 Apr 2018 19:34:33 +0200 Subject: [PATCH] Simplify Send size constants --- ROADMAP.md | 2 ++ api/src/config.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index bb9b6d0..e14c071 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -4,6 +4,7 @@ - Automatically get owner token, from file history when setting password - Allow file/directory archiving on upload - Allow unarchiving on download +- Show a simplified command list when calling `ffsend` without arguments - Use clipboard through `xclip` on Linux if available for persistence - Automated releases through CI - Release binaries on GitHub @@ -23,6 +24,7 @@ - Host configuration file for host tags, to easily upload to other hosts # Other ideas +- Rework encrypted reader/writer - API actions contain duplicate code, create centralized functions - Only allow file extension renaming on upload with `-f` flag - Quick upload/download without `upload` or `download` subcommands? diff --git a/api/src/config.rs b/api/src/config.rs index f054c76..1e30d15 100644 --- a/api/src/config.rs +++ b/api/src/config.rs @@ -7,7 +7,7 @@ pub const HTTP_STATUS_EXPIRED: StatusCode = StatusCode::NotFound; pub const HTTP_STATUS_UNAUTHORIZED: StatusCode = StatusCode::Unauthorized; /// The recommended maximum upload size in bytes. -pub const UPLOAD_SIZE_MAX_RECOMMENDED: u64 = 1_073_741_824; +pub const UPLOAD_SIZE_MAX_RECOMMENDED: u64 = 1024 * 1024 * 1024 * 1; /// The maximum upload size in bytes. -pub const UPLOAD_SIZE_MAX: u64 = 2_147_483_648; +pub const UPLOAD_SIZE_MAX: u64 = 1024 * 1024 * 1024 * 2;