Commit Graph

36 Commits

Author SHA1 Message Date
neri 1c7930d0c6 always prefer inline display when not downloading 2021-08-15 23:23:03 +02:00
neri 74d06f53a1 add error logging for internal server errors 2021-04-08 00:33:22 +02:00
neri 229e428de3 implement basic auth and additional upload limits for unauthenticated users 2021-04-08 00:25:20 +02:00
neri 1c43d70457 allow slash after file url 2021-04-07 13:02:46 +02:00
neri e49800f05e Don't view file when delete_on_download is set
Fixes #6
2021-04-04 14:36:38 +02:00
neri 313da6b583 Always display content as text if user uploaded it as such
Fixes #8
2021-04-04 14:33:37 +02:00
neri 3bed4de127 extract more modules, fix FileKind enum names 2021-04-04 14:30:31 +02:00
neri 77fd25b787 implement delete on download, better logging and multipart parsing
a new database column was introduced for delete on download.
the model should be migrated automatically.

Fixes #4
2021-04-04 03:39:50 +02:00
neri 2388e2c2ce decide when to show embedded text based on mime type of file 2021-03-10 00:02:02 +01:00
neri 1d51c200d6 do mime guessing, fix MAX_UPLOAD_BYTES 2021-03-09 23:36:24 +01:00
neri 3a3174619d shorter id generation, shorten file url 2021-03-09 22:19:06 +01:00
neri 9e38960f00 update dependencies, urlencode filename 2021-03-09 20:09:41 +01:00
neri f100450796 remove unused import 2021-02-13 16:49:05 +01:00
neri 12544034af Add curl instructions, extract copy into own file 2021-02-13 16:47:04 +01:00
neri 4efea5e221 improve error handling 2020-12-03 23:30:37 +01:00
neri c9d00db39a add 404 page 2020-08-19 16:24:42 +02:00
neri 458220df47 more intuitive max file size 2020-08-13 15:32:12 +02:00
neri 64c2567918 append original file name to urls 2020-08-03 02:42:27 +02:00
neri b553bd621b remove debug env var read 2020-08-03 01:30:45 +02:00
neri c57d15c7e3 rustify db url building 2020-08-03 01:28:42 +02:00
neri e3a7c5329e apply formatter 2020-08-03 01:12:42 +02:00
Fionera 64be9b7f0c Use actix url generator for the uploaded url 2020-08-03 00:07:16 +02:00
Fionera b512674da9 Add Connection string builder 2020-08-02 03:08:07 +02:00
neri a92d7fe397 do some code cleanup 2020-07-14 17:53:43 +02:00
neri 594ca9d253 remove content disposition from index.html 2020-07-14 16:03:34 +02:00
neri 941c07bdaf no compression, better http caching, better css 2020-07-14 13:46:01 +02:00
neri 07db070107 add asciitrash copy and download button 2020-07-14 13:21:57 +02:00
neri 6ffaf5d582 use correct http semantic on upload redirect 2020-07-13 16:08:55 +02:00
neri 42a3d61db8 configurable logging, mobile friendliness 2020-07-13 15:59:16 +02:00
neri 5fb444216e fix deletion race condition 2020-07-13 15:29:40 +02:00
neri 7403abbe99 db timeout, dont leak inner workings, auto create files dir, fix script injection 2020-07-13 15:22:33 +02:00
neri e110378ba6 remove compile time postgres dependency, add docker build 2020-07-12 02:26:11 +02:00
neri 4af61bfd86 add environment variable configuration 2020-07-11 23:27:15 +02:00
neri 82b2bd4075 add readme, extract init-db script 2020-07-09 22:01:25 +02:00
neri 827baf8eec finish it i guess 2020-07-09 19:27:32 +02:00
neri fdd418ec3e Initial commit 2020-07-08 21:33:48 +02:00