1
0
Commit Graph

29 Commits

Author SHA1 Message Date
eea0e0968a
Added passing of site link to a template. 2022-08-01 01:09:11 +04:00
0a6c8e5d49
Retrieve file's salted hash depending on request's method DELETE or POST. 2022-07-01 03:43:52 +04:00
43a2f6b9d5
Added Delete handler to UploadHandlers. 2022-07-01 03:31:33 +04:00
023fdab96f
Added special case for curl in NotFound handler. 2022-07-01 03:31:08 +04:00
14e0886790
Added Delete log to UploadHandlers. 2022-07-01 03:30:40 +04:00
713bd166af
Removed unused structures. 2022-06-13 21:16:15 +04:00
2cdd27d249
Replaced templates to a generated ones. 2022-06-13 21:07:33 +04:00
d142bbcd7d
Templates are moved off to root/web directory. 2022-05-25 00:27:30 +04:00
f74576e3ce
Better error messages. Now you will not loose your uploaded file if I somehow fuck the template up. 2022-03-29 18:58:35 +04:00
b49f863abf
A micro-optimisation. We don't need a name parameter if there is no such file anyway. 2022-03-29 18:41:05 +04:00
829000764c
A little var name refactor. 2022-03-07 23:40:41 +04:00
980dce8023
Omitted unused variable. Fixed copy-paste error with using uploaded template instead of nospace. 2022-03-06 22:34:34 +04:00
8cc669be1c
Use X-Real-IP to get client addr. 2022-02-11 04:30:37 +04:00
c4c07813af
Added User-Agent to logs. 2022-02-10 22:50:13 +04:00
c6aed4b67f
Handle situation when there's not enough space left. 2022-02-09 01:48:19 +04:00
efd83144c4
Pass KeepForHours to index template. 2022-02-09 00:48:52 +04:00
4a5f54ee70
Properly form a download URL. 2022-02-08 19:21:44 +04:00
c884fe8225
Let's check if client is curl and return just a link.
And NetworkType() returns a scheme as well now.
2022-02-08 19:02:37 +04:00
e2b2758b34
Removed dir arg from compileTemplates(). 2022-02-08 18:26:20 +04:00
381a0dcc98
Jade can work with embed FS, so we do that. 2022-02-08 17:46:44 +04:00
e529bfa353
Amber is replaced with Jade. 2022-02-08 04:23:38 +04:00
bf0595453c
Creating a sparse file, because on file create an inotify will produce an event and dir size will be recalculated, so it can get an actual size. 2022-02-08 02:12:01 +04:00
9a4461ac4e
Now instead of computing dir size on every request use a variable that is updated using inotify. 2022-02-08 00:25:50 +04:00
d9adf74608
Handle NotFound error in Download(). 2022-02-07 23:09:18 +04:00
8fdf0b61e2
Added NotFound handler.
Removed commented out content-type header.
2022-02-07 22:51:47 +04:00
8a4104c3d5
Remove all debugging calls. 2022-02-07 22:27:34 +04:00
be37f74317
Storage size computing moved off to utils.DirectorySize(). 2022-02-07 22:18:22 +04:00
cafb305b76
Logging using a handmade one. 2022-02-07 19:42:09 +04:00
264e403882
Handlers. 2022-02-07 04:49:21 +04:00