aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-06-06chore: clean upAlec Di Vito2-5/+4
2024-06-06feat: Added HTML and Javascript progress bar when uploading filesAlec Di Vito5-13/+261
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-04-26Bump depsSven-Hendrik Haase1-1/+2
2024-04-16fix missing drag-form when dragging file in to browserchaibiq1-1/+1
2024-03-28Bump depsSven-Hendrik Haase1-1/+0
2024-03-16add file and folder symbol to scsschaibiq1-2/+2
2024-03-16add folder and file symbolchaibiq1-2/+2
2024-02-01tweak doc commentCarson McManus1-2/+2
2024-01-30move check for disable_indexingCarson McManus1-9/+8
2024-01-30Revert "completely disable the listing renderer when indexing is disabled"Carson McManus1-15/+3
This reverts commit 7b5b1a0e7fec2c0577eb0dc2a93e9fde48228a67.
2024-01-30completely disable the listing renderer when indexing is disabledCarson McManus1-3/+15
2024-01-30Rename `StartError` -> `StartupError`cyqsimon2-11/+12
2024-01-30add short version of `--disable-indexing` cli argCarson McManus1-1/+2
2024-01-29Refactor errorscyqsimon7-134/+142
- 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 McManus4-1/+20
2024-01-26Fix inaccurate uses of `sanitize_path`cyqsimon2-5/+6
2024-01-16Reformat args helpSven-Hendrik Haase1-3/+5
2024-01-16Add option for compress responsezuisong3-1/+20
2024-01-14Compress response using `actix_web::middleware::compress`Dean Li1-0/+1
2024-01-13Tighter code formattingSven-Hendrik Haase1-3/+0
2024-01-13Clean up default order functionSven-Hendrik Haase3-41/+19
I removed the stringly typing as we already have enums for this that we can make use of.
2024-01-13Use tokio::fs instead of std::fs to enable async file operations (fixes #445)Sven-Hendrik Haase1-8/+9
2024-01-13Set default sorting order and method with argumentselandsborough4-4/+59
2024-01-13Fix formattingSven-Hendrik Haase1-8/+14
2024-01-11Ignore readonly metadata and handle errors insteadVictor1-11/+15
2024-01-03Update actix-multipart to 0.6.1Sven-Hendrik Haase2-3/+3
2023-12-11Remove header Content-Encoding when archivingWhyme Lyu2-10/+0
Content-Encoding is a representation header which kinda means "same content, presented differently to different clients" or "encoded & decoded on-the-fly, guided by content negotiation". In the case of downloading an archive, MDN docs explicitly says that (quoted from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding): > If the original media is encoded in some way (e.g. a zip file) then this > information would not be included in the Content-Encoding header. Thus this patch. Also fixes !1187.
2023-12-06Prevent illegal request path from crashing programcyqsimon1-6/+11
2023-11-09Better help for -uSven-Hendrik Haase1-0/+5
2023-10-10Fix incorrect conditional compilationSven-Hendrik Haase1-3/+1
2023-09-05Fix clippy complaintscyqsimon1-1/+1
2023-09-05Fix incorrect usage of app data extractorcyqsimon1-1/+1
- `Data` extractor can only be used when app data is wrapped with `Data`
2023-09-05Minor code style refactorscyqsimon2-21/+27
2023-09-05Use distinct query type for file op APIscyqsimon3-18/+20
2023-09-05rename `file_upload` to `file_op`cyqsimon2-2/+4
- This is in preparation for adding deletion code
2023-09-05Rewrite `contains_symlink`cyqsimon2-29/+41
2023-08-21Fix MIPS compileSven-Hendrik Haase1-3/+2
2023-08-21Fix arg help formattingSven-Hendrik Haase1-4/+9
2023-08-07Adjust from feedbackNorberto Lopes1-1/+6
- remove info logging - add comment to clarify logic
2023-08-06Add pretty urlsNorberto Lopes3-1/+39
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-08-02use a char instead of string literalDashon Wells1-1/+1
2023-08-02Run cargo fmt to fix formattingDashon Wells1-2/+3
2023-08-02Encode single quote in directory path nameDashon Wells1-1/+2
2023-07-26Fix error page wrappingBao Trinh1-2/+10
Error page was incorrectly comparing the full content-type header of error responses against `text/plain`, so no error pages were being wrapped by `map_error_page`.
2023-07-26Consolidate javascript and add commentsBao Trinh1-35/+29
2023-07-21Add ability to read auth from fileProudmuslim2-3/+19
2023-07-21use grass include macro; remove build.rsBao Trinh2-5/+5