diff options
author | Alec Di Vito <divito.alec@gmail.com> | 2024-06-06 22:42:20 +0000 |
---|---|---|
committer | Alec Di Vito <divito.alec@gmail.com> | 2024-06-06 22:42:20 +0000 |
commit | be81eaefa526fa80e04166e86978e3a95263b4e3 (patch) | |
tree | 62b7a39877832859925cb3c88a0d5e0b17ea5054 /src/args.rs | |
parent | Bump deps (diff) | |
download | miniserve-be81eaefa526fa80e04166e86978e3a95263b4e3.tar.gz miniserve-be81eaefa526fa80e04166e86978e3a95263b4e3.zip |
feat: Added HTML and Javascript progress bar when uploading files
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 95c8bff..a58504b 100644 --- a/src/args.rs +++ b/src/args.rs @@ -165,6 +165,14 @@ pub struct CliArgs { /// When specified via environment variable, a path always neesd to the specified. #[arg(short = 'u', long = "upload-files", value_hint = ValueHint::FilePath, num_args(0..=1), value_delimiter(','), env = "MINISERVE_ALLOWED_UPLOAD_DIR")] pub allowed_upload_dir: Option<Vec<PathBuf>>, + + /// Configure amount of concurrent uploads when visiting the website. Must have + /// upload-files option enabled for this setting to matter. + /// + /// For example, a value of 4 would mean that the web browser will only upload + /// 4 files at a time to the web server when using the web browser interface. + #[arg(long = "web-upload-files-concurrency", env = "MINISERVE_WEB_UPLOAD_CONCURRENCY", default_value = "0")] + pub web_upload_concurrency: usize, /// Enable creating directories #[arg( |