aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-07Add asynchronous directory size countingSven-Hendrik Haase1-1/+1
This is enabled by default and without an option to toggle it off as it's asynchronous and shouldn't block the server thread.
2025-03-07Reformat everything with Rust 2024 editionSven-Hendrik Haase1-1/+3
2025-03-06change cli argsLzzzt1-2/+18
Signed-off-by: Lzzzt <liuzitao0123@gmail.com>
2025-03-03make the option effect raw modeLzzzt1-2/+2
Signed-off-by: Lzzzt <liuzitao0123@gmail.com>
2025-03-03Show File Size in BytesLzzzt1-0/+4
Add a cli option that show file size in bytes rather than KB or MB, etc.
2025-03-02feat: validate temp dir exists through `value_parser` and fixed clippy issuesAlec Di Vito1-0/+15
2025-02-22feat: address comments; add in new argument (`temp-directory`); add comments ↵Alec Di Vito1-0/+22
to upload code; add tests
2025-02-17feat: implement temporary file uploads and tweak mobile designAlec Di Vito1-3/+7
2025-02-05add read-only webdav supportLukas Stabe1-0/+6
2024-10-11Fix formattingSven-Hendrik Haase1-1/+5
2024-10-11Prefix OVERWRITE_FILES env varSven-Hendrik Haase1-1/+1
Fixes #1457.
2024-06-26Fix typos in CLIZakhary Kaplan1-1/+1
2024-06-09Remove explicit dependency on httpSven-Hendrik Haase1-1/+1
We now use the one supplied by actix-web.
2024-06-06chore: clean upAlec Di Vito1-1/+1
2024-06-06feat: Added HTML and Javascript progress bar when uploading filesAlec Di Vito1-0/+8
2024-04-26Improve documentation for the --header parameter (#1389)orwithout1-1/+6
* Improve documentation for the --header parameter * Add Support for HSTS to Enhance HTTPS Security --------- Co-authored-by: orwithout <googoldecibel@gmail.com>
2024-02-01tweak doc commentCarson McManus1-2/+2
2024-01-30add short version of `--disable-indexing` cli argCarson McManus1-1/+2
2024-01-29Refactor errorscyqsimon1-6/+26
- Split `ContexualError` into `StartError` & `RuntimeError` - Made sure every `RuntimeError` variant has an accurate status code
2024-01-29add `--disable-indexing` cli flag to completely disable directory indexingCarson McManus1-0/+6
2024-01-16Reformat args helpSven-Hendrik Haase1-3/+5
2024-01-16Add option for compress responsezuisong1-0/+12
2024-01-13Clean up default order functionSven-Hendrik Haase1-4/+5
I removed the stringly typing as we already have enums for this that we can make use of.
2024-01-13Set default sorting order and method with argumentselandsborough1-0/+20
2023-11-09Better help for -uSven-Hendrik Haase1-0/+5
2023-08-21Fix arg help formattingSven-Hendrik Haase1-4/+9
2023-08-06Add pretty urlsNorberto Lopes1-0/+8
This adds a new flag namely `--pretty-urls` that when enabled will serve the equivalent `.html` if it exists. Very much the same approach that [`netlify` uses](https://docs.netlify.com/site-deploys/post-processing/). It can be quite useful when having hrefs like `/about` serve `/about.html`.
2023-08-03Add file content example to `--auth-file` argumentproudmuslim-dev1-1/+5
2023-08-03Update src/args.rsproudmuslim-dev1-1/+1
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
2023-07-21Add ability to read auth from fileProudmuslim1-1/+5
2023-07-05Allow parameters to be provided via env varsSven-Hendrik Haase1-32/+78
Fixes #829.
2022-12-19Fix lintsSven-Hendrik Haase1-4/+4
2022-11-11Fix clap 4 behavior when allowing duplicate argsSven-Hendrik Haase1-12/+3
2022-10-14Golf a use lineSven-Hendrik Haase1-2/+1
2022-10-14Fix clap deprecationsSven-Hendrik Haase1-36/+35
Also update README
2022-10-12Upgrade clap to v4Sven-Hendrik Haase1-33/+24
2022-09-20Tidy up some importsSven-Hendrik Haase1-2/+3
2022-09-18Improved output of -hJonas Diemer1-1/+1
2022-09-18cargo fmtJonas Diemer1-1/+6
2022-09-18Use argument -u instead of --allowed-upload-dirJonas Diemer1-11/+5
2022-09-18Renamed option for more clarityJonas Diemer1-3/+5
2022-09-18Switched to use of PathBuf, fixed for subdirsJonas Diemer1-3/+2
2022-09-18Added dependency to -u for --restrict-upload-dirJonas Diemer1-1/+2
2022-09-18Added option restrict-upload-dirJonas Diemer1-0/+4
2022-09-14Fix typosKian-Meng Ang1-1/+1
Found via `codespell -L crate`.
2022-08-14Correct SpellingGaurav1-1/+1
2022-08-14Add `--readme` info and reformatGaurav1-2/+2
2022-08-14Add `--readme` flag to cliGaurav1-0/+4
2022-06-26Create directory (#781)Sheepy1-0/+4
* Add ability to make directory Frontend for making directories Fix potential security vulnerability (CWE-23) Add tests Update README.md Disallow using parent directories altogether Fix formatting Fix clippy warnings Address review comments Update README.md Change `making` to `creation` Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> Have make directory flag require file upload flag Address review comments * Disallow uploading files and making directories through symlinks when disabled * Add test * Clippy formatting changes * Add test doc comment
2022-05-23Flip usage of theme selector showing functionality added in last commitSven-Hendrik Haase1-4/+4
This is so it doesn't break current configurations. Let's not surprise the users.