neri
|
756d4b67a0
|
refactor: fix clippy warnings
|
2022-11-04 11:37:15 +01:00 |
neri
|
7664ba3ec9
|
don't reread file to perform mime guess
|
2022-10-26 20:01:29 +02:00 |
neri
|
7983557c5a
|
update/fix rate limit environment variables
|
2022-10-15 14:32:20 +02:00 |
neri
|
32fdda0b1e
|
remove debug logs
|
2022-10-15 14:02:47 +02:00 |
neri
|
171bfc98a9
|
use inline string formatting
|
2022-10-07 15:52:12 +02:00 |
neri
|
d7b6d31198
|
determine corrext file extension for text uploads
|
2022-10-07 15:51:38 +02:00 |
neri
|
1dc2fff0c1
|
load mime parents to determine text display
|
2022-10-07 14:29:47 +02:00 |
neri
|
e4857cde42
|
perform mime guess on application/octet-stream upload
|
2022-09-30 15:42:08 +02:00 |
neri
|
1527445857
|
upgrade dependencies and time handling
|
2022-09-30 14:51:23 +02:00 |
neri
|
4ea8797149
|
always add X-Content-Type-Options: nosniff header
|
2022-09-30 14:49:04 +02:00 |
neri
|
4496335f50
|
add rate limiting for download
|
2022-09-30 14:47:13 +02:00 |
neri
|
96eadb1723
|
return correct mime types, improve web security
|
2022-09-30 14:43:35 +02:00 |
neri
|
e0b5a3fc65
|
fix unlimited max file size template render
|
2022-07-23 15:02:30 +02:00 |
neri
|
b414fda39a
|
make template filling code prettier
|
2022-07-06 19:03:26 +02:00 |
neri
|
53c568082d
|
trim trailing whitespace of snippets
|
2022-07-03 00:48:34 +02:00 |
neri
|
bf7c762f83
|
upgrade dependencies
|
2022-07-02 22:28:48 +02:00 |
neri
|
36b9096325
|
add cache headers for file downloads
|
2022-06-30 01:04:03 +02:00 |
neri
|
7e2d1d8c71
|
Revert "add a custom response for full storage"
This reverts commit eddbeec7ef .
|
2022-05-09 23:07:24 +02:00 |
neri
|
eddbeec7ef
|
add a custom response for full storage
|
2022-04-30 21:29:41 +02:00 |
neri
|
d9c92a2827
|
use html view even if content matches text/html
|
2022-04-23 23:40:35 +02:00 |
neri
|
d340db3b51
|
migrate from chrono to time
|
2022-02-27 01:50:29 +01:00 |
neri
|
925a45a011
|
update actix and migrate to tokio
|
2022-02-27 00:34:57 +01:00 |
neri
|
593f93d7d8
|
don't send content-disposition header for index.html
|
2022-01-29 12:50:44 +01:00 |
neri
|
78ef78f342
|
cleanup text response code
|
2021-12-20 15:40:49 +01:00 |
neri
|
48574b1ec3
|
prefer to serve raw files over html files
|
2021-12-20 15:01:02 +01:00 |
neri
|
30d059b7af
|
refactor upload requirements check into separate method
|
2021-12-20 11:12:09 +01:00 |
neri
|
2fb3b257c2
|
add shortlink to uploaded page
|
2021-12-20 01:06:28 +01:00 |
neri
|
424af11918
|
cache index.html and auth-hide.js in static directory
|
2021-12-08 18:54:55 +01:00 |
neri
|
95dacb20b4
|
fix panic when files table is empty
|
2021-10-16 00:22:54 +02:00 |
neri
|
a065787487
|
limit text view to 512KiB, fix deleter sql query
|
2021-10-16 00:22:54 +02:00 |
neri
|
dfd3387ac6
|
ensure file ids are unique
|
2021-10-16 00:22:54 +02:00 |
neri
|
2ff464915c
|
simpify db query code
|
2021-10-16 00:22:54 +02:00 |
neri
|
b91ef4ab80
|
disallow newlines in urls
|
2021-10-16 00:22:54 +02:00 |
neri
|
84b4c399ca
|
add custom view for link-only text
|
2021-10-16 00:22:54 +02:00 |
neri
|
c372db6446
|
show limits explicitly, improve code
|
2021-10-16 00:22:54 +02:00 |
neri
|
31a429861d
|
always prefer inline display when not downloading
|
2021-10-16 00:22:54 +02:00 |
neri
|
f2dfca2b39
|
add error logging for internal server errors
|
2021-10-16 00:22:54 +02:00 |
neri
|
f97b3d79be
|
implement basic auth and additional upload limits for unauthenticated users
|
2021-10-16 00:22:53 +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 |