Commit graph

28 commits

Author SHA1 Message Date
xenofem 9d87934cf4 add 404 page for incorrect download codes 2022-05-03 18:31:50 -04:00
xenofem eb53030043 refactor config variables, add upload password 2022-05-03 16:28:43 -04:00
xenofem bfe7fcde99 cargo clippy and fmt 2022-05-01 05:28:50 -04:00
xenofem 8275b940ac improve download code UI, tidy up URL structure 2022-05-01 05:11:23 -04:00
xenofem 86bdac20af memorable download codes 2022-05-01 03:28:25 -04:00
xenofem 99b93b4e7d just unwrap on datetime formatting, it should never be an issue and there's no point having an error ready to pass back to the client 2022-05-01 02:22:03 -04:00
xenofem b33bb7aa9d cleanup all the <Uploader as Actor>::Contexts 2022-04-30 16:10:12 -04:00
xenofem e95590ef07 Normalize filenames to Unicode Normal Form D before sanitisation 2022-04-30 15:14:28 -04:00
xenofem 458f791fe3 namespace all our variables 2022-04-30 01:53:21 -04:00
xenofem f52aa0f08b added file expiration and fleshed out the API a bit 2022-04-30 01:38:26 -04:00
xenofem cc0aaaab94 fix weird end-of-file bug by having downloaders use inotify to directly track changes 2022-04-29 22:36:44 -04:00
xenofem 32738e4515 better cleanup of storage state 2022-04-28 06:26:44 -04:00
xenofem fa1917ac17 prevent deserializer from tripping up on positive integers 2022-04-28 05:25:03 -04:00
xenofem bda6da33e8 cargo clippy and fmt 2022-04-28 05:18:35 -04:00
xenofem 127d7e9c67 add persistent state 2022-04-28 05:13:14 -04:00
xenofem cee8c93659 Content-Security-Policy: sandbox for user-submitted files 2022-04-28 01:06:39 -04:00
xenofem 7d8c4f00fa maximum file count 2022-04-28 00:27:22 -04:00
xenofem 55fa969bea zip: set minimum version field back to 4.5
I'm not sure what the deal is, it sounds like the UTF-8 bit flag is
6.3, but linux's zip utilities don't support 6.3 and do support the
bit flag, so *shrug*
2022-04-27 21:58:11 -04:00
xenofem b832ae5a95 zip: set bit flag for UTF-8 filenames, bump minimum zip version to 6.3 2022-04-27 20:31:12 -04:00
xenofem 2ec295e606 implement downloads, lots of misc tweaks/fixes 2022-04-27 20:15:51 -04:00
xenofem f10ee6aa2a zip: go back to saying we're unix, we just forgot to include unix permissions in the external file attributes 2022-04-27 12:47:43 -04:00
xenofem 527f184944 fix type error 2022-04-27 01:31:34 -04:00
xenofem 16913bb079 finish functionality for uploader to receive waker handle messages 2022-04-27 01:17:00 -04:00
xenofem ba3326ef24 cargo fmt 2022-04-27 00:55:36 -04:00
xenofem 779337de5e make static dir and port configurable 2022-04-27 00:53:32 -04:00
xenofem c41430bcdc don't bother trying to make app name configurable actually 2022-04-27 00:44:35 -04:00
xenofem b84cb24ab9 don't say the zipfile was made on unix, it causes trouble with permissions 2022-04-27 00:28:26 -04:00
xenofem 20da86132b WIP file drop server, no downloads yet 2022-04-26 23:54:29 -04:00