Commit Graph

60 Commits

Author SHA1 Message Date
9df18fdc69 fixes-20210521 (#373) 2021-05-21 15:49:48 +02:00
fdfd453222 Added random-token-length, Encode() refactored 2021-05-20 08:26:07 +02:00
0512452111 Added UrlRandomToken in template data 2021-05-09 09:21:54 +02:00
6bd3e97186 Only increment download counter on files that have a download limit
For files that have no limit, there is no reason to track the download counter as its value will never be used anyway. This reduces costs on storage backends that have an operation fee (e.g. AWS S3) or a minimum retention (e.g. Wasabi S3).
2021-04-25 17:47:23 +00:00
4daca97f89 Only rewrite metadata file when the download counter changed
Previously, the metadata file would be rewritten even if the download counter stayed the same (i.e. `increaseDownload = false`, previews and HEAD requests). Because the metadata doesn't change in that case, this would simply rewrite the exact same contents needlessly, which may also incur extra costs depending on the storage backend.
2021-04-19 18:37:47 +00:00
69519d8fa4 Unwrap unnecessary bytes.NewReader 2021-03-19 08:25:40 +01:00
b36711c1ea sanitize only on inline content-disposition 2021-03-02 16:50:53 +01:00
27f84e719a Content-Type metadata to lower 2021-03-02 16:48:04 +01:00
7ea65c5a24 go get -u, go build ldflags, docker tag, inline handler 2021-02-19 14:50:40 +01:00
d554eb8e2d clone url 2021-01-06 13:33:46 +01:00
6ac6c8fa99 PURGE FEATURE 2021-01-05 17:23:47 +01:00
e53d599e09 ISSUE-332 2020-12-31 20:08:42 +01:00
9430e53689 Merge pull request #307 from cheeseandcereal/add_proxy_port
add proxy-port for port override when running behind a proxy
2020-05-17 19:28:21 +02:00
f909ad3ce2 fix missing metadata security vuln 2020-05-08 16:23:32 -07:00
d830bf1afc revert println
Signed-off-by: Adam Crowder <adam@adamcrowder.net>
2020-05-08 11:49:21 -07:00
f366e8217e add proxy-port for port override when running behind a proxy
Signed-off-by: Adam Crowder <adam@adamcrowder.net>
2020-05-03 13:26:49 -07:00
3b1b5b890a Removed contentType from storage, rely on metadata 2020-03-15 19:35:43 +01:00
bef766f605 FIX BUILD 2019-10-07 21:33:45 +02:00
58edf68fd7 no need for abs path flag param 2019-07-16 21:23:19 +02:00
2e41852860 fix resolved url 2019-07-16 20:51:31 +02:00
1809ffe8b5 ISSUE-240 negative max metadata instead of big enough 2019-07-06 20:33:35 +02:00
2ee646590d ISSUE-241 check metadata on preview 2019-07-06 20:13:20 +02:00
b8faedc92f Add X-Remaining-Downloads and X-Remaining-Days headers to HEAD and GET responses 2019-06-17 00:43:22 +00:00
568f917c67 Fix encoding of spaces in filenames from + to %20 2019-06-13 16:35:10 +02:00
e8ccf543f6 ISSUE-221 2019-05-18 14:13:23 +02:00
a4e4cafc30 ISSUE-223 2019-05-11 15:12:38 +02:00
4d88a2fbc4 ISSUE-223 2019-05-11 15:01:00 +02:00
9148f20aee ISSUE-203 2019-05-11 14:47:58 +02:00
cc401433a6 ISSUE-203 2019-05-11 14:42:59 +02:00
61a4b4fe33 ISSUE-203 2019-05-08 09:14:08 +02:00
b5b58f9b3b ISSUE-217 2019-04-29 07:23:24 +02:00
ba0e2ac711 ISSUE-215 2019-04-27 11:50:36 +02:00
3c7904cd67 Fixed typo 2019-03-30 02:30:12 +01:00
5310566b81 fixes 2019-03-18 19:09:22 +01:00
af80d889af support range header 2019-01-16 19:58:11 +01:00
f4d00db5e1 REMOVE DEBUG LOG 2018-12-15 21:42:53 +01:00
64344fcf4d FIX MISSING TEMPLATE DATA 2018-12-15 21:42:18 +01:00
d2c8b85b15 REFERENCING CURRENT HOSTING 2018-12-15 21:16:30 +01:00
60c1c1a116 ISSUE-164 (#166) 2018-10-19 22:37:23 +02:00
fb32a2a85a Add newline between URLs for multi-upload (#156) 2018-09-15 13:24:11 +02:00
8df04e3440 Fixes (#149)
* Head handlers & Update README.md
2018-08-13 08:56:08 +02:00
0605b8e271 go fmt 2018-07-07 20:23:50 +02:00
163faf569a Handle empty upload 2018-07-07 09:55:46 +02:00
d4baaba35f Fix XSS in markdown preview 2018-07-01 14:53:28 +02:00
99bb2a6118 QR code, html5 player 2018-07-01 14:41:53 +02:00
b31e6acd71 Merge pull request #128 from aspacca/ISSUE-44
ISSUE-44 delete support
2018-07-01 14:17:11 +02:00
7c25f986aa GA/UserVoice opt-in 2018-06-26 18:39:56 +02:00
baa2fdc86c ISSUE-92 added http basic auth handler for upload 2018-06-24 07:44:13 +02:00
0c9c6e3424 ISSUE-44 delete support 2018-06-24 07:42:12 +02:00
848e033196 ISSUE-109 fragment and query separators not escpade 2018-06-23 11:47:27 +02:00