77 Commits (master)

Author SHA1 Message Date
neri f9de6e5164 fix upload without filename 1 week ago
neri ca56e501a2 refactor upload endpoint 2 weeks ago
neri b9849153f0 fix url decoding in /uploaded endpoint 2 weeks ago
neri dc2f7ecab0 move multipart error handling into its module 2 weeks ago
neri 2de28ca5db correct vary header 2 weeks ago
neri 44843ab222 use rand distribution for file id generation 2 weeks ago
neri 756d4b67a0 refactor: fix clippy warnings 4 weeks ago
neri 7664ba3ec9 don't reread file to perform mime guess 1 month ago
neri 7983557c5a update/fix rate limit environment variables 2 months ago
neri 32fdda0b1e remove debug logs 2 months ago
neri 171bfc98a9 use inline string formatting 2 months ago
neri d7b6d31198 determine corrext file extension for text uploads 2 months ago
neri 1dc2fff0c1 load mime parents to determine text display 2 months ago
neri e4857cde42 perform mime guess on application/octet-stream upload 2 months ago
neri 1527445857 upgrade dependencies and time handling 2 months ago
neri 4ea8797149 always add X-Content-Type-Options: nosniff header 2 months ago
neri 4496335f50 add rate limiting for download 2 months ago
neri 96eadb1723 return correct mime types, improve web security 2 months ago
neri e0b5a3fc65 fix unlimited max file size template render 4 months ago
neri b414fda39a make template filling code prettier 5 months ago
neri 53c568082d trim trailing whitespace of snippets 5 months ago
neri bf7c762f83 upgrade dependencies 5 months ago
neri 36b9096325 add cache headers for file downloads 5 months ago
neri 7e2d1d8c71 Revert "add a custom response for full storage" 7 months ago
neri eddbeec7ef add a custom response for full storage 7 months ago
neri d9c92a2827 use html view even if content matches text/html 7 months ago
neri d340db3b51 migrate from chrono to time 9 months ago
neri 925a45a011 update actix and migrate to tokio 9 months ago
neri 593f93d7d8 don't send content-disposition header for index.html 10 months ago
neri 78ef78f342 cleanup text response code 12 months ago
neri 48574b1ec3 prefer to serve raw files over html files 12 months ago
neri 30d059b7af refactor upload requirements check into separate method 12 months ago
neri 2fb3b257c2 add shortlink to uploaded page 12 months ago
neri 424af11918 cache index.html and auth-hide.js in static directory 1 year ago
neri 95dacb20b4 fix panic when files table is empty 1 year ago
neri a065787487 limit text view to 512KiB, fix deleter sql query 1 year ago
neri dfd3387ac6 ensure file ids are unique 1 year ago
neri 2ff464915c simpify db query code 1 year ago
neri b91ef4ab80 disallow newlines in urls 1 year ago
neri 84b4c399ca add custom view for link-only text 1 year ago
neri c372db6446 show limits explicitly, improve code 1 year ago
neri 31a429861d always prefer inline display when not downloading 1 year ago
neri f2dfca2b39 add error logging for internal server errors 1 year ago
neri f97b3d79be implement basic auth and additional upload limits for unauthenticated users 1 year ago
neri 1c43d70457 allow slash after file url 2 years ago
neri e49800f05e Don't view file when delete_on_download is set 2 years ago
neri 313da6b583 Always display content as text if user uploaded it as such 2 years ago
neri 3bed4de127 extract more modules, fix FileKind enum names 2 years ago
neri 77fd25b787 implement delete on download, better logging and multipart parsing 2 years ago
neri 2388e2c2ce decide when to show embedded text based on mime type of file 2 years ago