aboutsummaryrefslogtreecommitdiffstats
path: root/src/file_upload.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-30Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy1-142/+25
... page rendering Too many arguments are moved around and many of them are already stored in MiniserveConfig. Many of these are used to render error pages. To fix this issue, it was necessary to rework error page rendering: 1. Implement `ResponseError` for `ContextualError` so that it can be returned from service handlers as is and will then be automatically logged to the console and converted into an error response. 2. At service handler level, all error responses are now rendered as plain text. 3. 'error_page_middleware' is now responsible for the rendering of the final error page from plain text reponses. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-08-28file_upload.rs: use async/awaitAli MJ Al-Nasrawy1-133/+100
... and rewrite {save_file, handle_multipart} ... and fix clippy warning about create_error_response() being always Ok()
2021-08-28migrate to actix-web v4.0-betaAli MJ Al-Nasrawy1-1/+1
2021-06-28Fix lintsSven-Hendrik Haase1-2/+2
2021-03-28Refuse to start without explicit path if not attached to interactive terminalSven-Hendrik Haase1-3/+1
2021-03-01Fix clippy warningTamas Levai1-0/+1
2021-02-28Add program version footerTamas Levai1-0/+7
2021-02-19Fix lintsSven-Hendrik Haase1-5/+5
2020-10-01restore default theme cli option and add default theme dark optionLukas Stabe1-0/+17
2020-09-26move css out of html into its own routeLukas Stabe1-0/+7
2020-09-25[wip] client-side color-scheme handlingLukas Stabe1-15/+0
2020-09-24Add embedded favicon (fixes #364)Sven-Hendrik Haase1-0/+7
2020-07-21Update to actix 2 and futures 0.3equal-l21-74/+65
2020-06-26Make clippy and cargo fmt happySven-Hendrik Haase1-1/+1
2020-03-11Format everythingSven-Hendrik Haase1-6/+6
2019-12-20Fixed clippy warningsDamian1-1/+1
2019-08-16Fix Clippy warningboastful-squirrel1-0/+1
2019-08-16Do not 'back to listing' link when random route is setboastful-squirrel1-1/+7
2019-06-09Add dynsSven-Hendrik Haase1-2/+2
2019-05-03Return QueryParameters struct instead of tupleboastful-squirrel1-11/+11
2019-05-02Read query params to handle error back linkboastful-squirrel1-41/+18
2019-05-02Cargo fmtboastful-squirrel1-2/+3
2019-05-01Use HTTP StatusCode for error titleboastful-squirrel1-1/+8
2019-04-27Improved some errorsboastful-squirrel1-1/+1
2019-04-27Themed errorsboastful-squirrel1-22/+86
2019-04-27Combine ContextualError and ContextualErrorKind into onekhai96_1-16/+16
2019-04-26Merged query parameter structs + improved file upload errorsboastful-squirrel1-21/+33
2019-04-24Add a couple more integration testsSven-Hendrik Haase1-4/+5
2019-04-21Properly log error + added render_error methodboastful-squirrel1-6/+6
2019-04-21Print upload/archive errors also in terminalboastful-squirrel1-0/+1
2019-04-21Rework error system + avoid panics in main()boastful-squirrel1-18/+39
2019-04-09Replace format with to_string()Vojtěch Pejša1-4/+1
2019-04-09Change HTTP response code and cleanup previus commit.Vojtěch Pejša1-5/+6
2019-04-08Refactor file upload.Vojtěch Pejša1-28/+38
2019-04-07Fix timeout error when uploading takes longer.Vojtěch Pejša1-2/+4
2019-04-04Fix typos and indentation.Vojtěch Pejša1-8/+8
2019-04-04Fix syntax error and clippy warnings.Vojtěch Pejša1-12/+17
2019-04-04Check if we have permissions to create files.Vojtěch Pejša1-1/+13
2019-04-04Better error handling for file upload.Vojtěch Pejša1-22/+33
2019-04-04Fix file upload when used with random route.Vojtěch Pejša1-2/+4
2019-04-04Add CLI arguments for file uploading.Vojtěch Pejša1-4/+9
2019-04-04Use proper typed query param.Vojtěch Pejša1-16/+25
2019-04-04Document file upload.Vojtěch Pejša1-2/+9
2019-04-04RefactoringVojtěch Pejša1-48/+36
2019-04-04Check if file path is under app root dir.Vojtěch Pejša1-7/+20
2019-04-04Implement file upload.Vojtěch Pejša1-0/+100