Bobby
93621afe94
feat: allow stream download of album ZIPs
...
extend ServeStatic handler to allow programatically calling the handle()
function from within in-progress Requests
also use file's timestamp as file's modified time in the ZIP archive
2022-10-04 07:06:37 +07:00
Bobby
97ffa67975
fix: download of >2GiB album ZIPs
2022-10-04 06:15:37 +07:00
Bobby
a49842a932
fix: size attribute of uploads with stripped tags
...
it'd previously always keep size attribute before the tags stripping
2022-10-04 05:42:00 +07:00
Bobby
0eb4c243c3
feat: use fs-jetpack in pathsController.js
2022-10-04 05:34:01 +07:00
Bobby
f3bf3f6500
feat: use fs-jetpack in utilsController.js
2022-10-04 05:33:25 +07:00
Bobby
9467132f1f
feat: use fs-jetpack in uploadController.js
2022-10-04 05:30:48 +07:00
Bobby
a7b5fc75c6
feat: use fs-jetpack in authController.js
2022-10-04 05:29:07 +07:00
Bobby
34c060ec5e
feat: delete zip of empty albums on download req
2022-10-04 05:16:51 +07:00
Bobby
d5b1ad69d9
fix: await album zip jetpack.rename()
2022-10-04 05:16:15 +07:00
Bobby
afd81c965d
chore: comment out onHold debug messages
...
seem stable enough
but just comment out if needed in the future
2022-10-04 05:12:21 +07:00
Bobby
e4a3447a5e
feat: use fs-jetpack in albumsController.js
2022-10-04 04:34:44 +07:00
Bobby
65d9a76071
feat: slowly transition to fs-jetpack
...
controllers/handlers/ServeStatic.js
controllers/middlewares/ServeStaticQuick.js
2022-10-04 04:20:38 +07:00
Bobby
fcdbf2d475
feat: better url uploads error status
2022-09-28 11:37:57 +07:00
Bobby
d364034738
fix: improve url uploads input check
2022-09-28 11:37:29 +07:00
Bobby
7e28c26d41
fix: improve multiple uploads Promise handling
2022-09-28 11:03:29 +07:00
Bobby
e64cfa89cf
feat: send more data in upload API response
2022-09-28 10:33:47 +07:00
Bobby
0b46f43bfa
chore: console log multipart early resolve
2022-09-28 10:32:45 +07:00
Bobby
b3a2c93642
feat: improve flow of storing files to db
...
API respond now have new prop "repeated" to signify that the files were
already previously uploaded
2022-09-28 10:16:00 +07:00
Bobby
81c94a40d5
feat: defaults mime-type to octet-stream
2022-09-28 10:14:57 +07:00
Bobby
c1bb2f5015
refactor: logic improvements
2022-09-28 10:14:08 +07:00
Bobby
aebeb8e045
feat: filter uploads using relative time duration
...
added a new production dependency parse-duration@~1.0.2
read filters help popup in dashboard for usage example
2022-09-24 09:54:49 +07:00
Bobby
216ba12b3e
feat: filter uploads with unix timestamp dates
2022-09-24 08:38:43 +07:00
Bobby
a44af208aa
feat: click on table headers to sort uploads
...
fairly robust logic, with auto toggling of asc or desc sort direction
2022-09-24 08:09:27 +07:00
Bobby
a646d6731a
fix: possible upload stream starting early
2022-09-24 06:41:31 +07:00
Bobby
518b29c8df
feat: better albums.onHold debugging messages
2022-09-24 06:35:41 +07:00
Bobby
c47d3f5437
feat: better upload.onHold debugging messages
...
expose util.inspect via utils when on dev mode
2022-09-24 06:33:58 +07:00
Bobby
32efacd411
feat: configure timemark for video thumbnails
2022-09-24 06:24:56 +07:00
Bobby
47727f3ca8
feat: allow specifying api token in nojs uploader
2022-09-21 08:03:28 +07:00
Bobby
7147afc309
feat: better props override for auth helepr functs
2022-09-21 08:02:13 +07:00
Bobby
ffe6d6ed88
feat: console log incoming requests on dev mode
2022-09-21 07:44:40 +07:00
Bobby
bf077f4aa3
fix: typos in ServeStatic.js
2022-09-21 06:09:27 +07:00
Bobby
cc5625fabf
fix: url upload fetch timeout failsafe
2022-09-14 06:04:18 +07:00
Bobby
93dc820368
feat: fetch() with AbortController for timeout
...
to be used with URL uploads
please consult the comments in the source files
this adds new dependency abort-controller
2022-09-14 01:33:31 +07:00
Bobby
3df67f87be
feat: timeout url uploads to 10s
...
uwebsockets.js has a 10s timeout of no communication between client and
server, for it to simply drop the connection
there's no point waiting any further at that point since we can't reply
to client anymore
2022-08-24 04:37:13 +07:00
Bobby
6ad8ed7ae6
fix: only accept files upload with files[] field
...
was always supposed to only accept said field, but i forgot to include
the logic during migration from expressjs to hyper-express
2022-08-24 04:17:07 +07:00
Bobby
96522a425f
chore: indents
2022-08-23 15:16:02 +07:00
Bobby
ab4f8263de
feat: ignore option for ServeStaticQuick class
2022-08-23 15:13:04 +07:00
Bobby
414afc7ae6
feat: allow specifying root path in serve classes
...
when used on non-root paths
2022-08-23 15:12:25 +07:00
Bobby
ff7ec4aeaf
fix: /users/edit throw with empty edits
2022-08-23 15:09:47 +07:00
Bobby
09fea107f3
feat: env SERVE_STATIC_QUICK=0 yarn start
...
restore an older behavior of serving static files with
ServeLiveDirectory middleware instead of ServeStaticQuick, in case of
issues with streaming files from disk via createReadStream
if you do encounter this issue, serving uploaded files with node will
likely encounter issues as well, but you can choose to serve them
directly with nginx, etc., so i guess it's not beyond hope
2022-08-21 21:23:14 +07:00
Bobby Wibowo
bd71035517
fix: missing cpu temp and swap logic
2022-08-19 10:48:45 +07:00
Bobby Wibowo
991cfe134e
feat: add cpu temp and swap memory to statistics
...
temp is currently hard-coded to C
also increased system info caching to 1s
2022-08-19 10:38:24 +07:00
Bobby Wibowo
86d9db3137
feat: split service info in statistics
...
additionally add cpu detail in system info
2022-08-19 10:18:35 +07:00
Bobby Wibowo
ea30e5dee5
feat: enable persistent cache for nojs uploader
...
also slight improvement to NunjucksRenderer class
2022-08-19 09:50:08 +07:00
Bobby Wibowo
0d05da40b0
fix: fallback deletion url to relative path
...
if homeDomain is not configured via config file or env var
the deletion url is a frontend page, so it cannot simply assume it's on
the same domain as uploaded files
2022-08-19 09:29:11 +07:00
Bobby Wibowo
6c929efa7b
fix: less strict missing token header check
...
previously would still assume token is provided when the header is
simply an empty string, which may be unavoidable for some clients
2022-08-19 07:30:32 +07:00
Bobby Wibowo
59c5c8b7b0
fix: guest uploads hanging
...
caused by auth middleware not passing the request when token is missing
2022-08-19 07:01:45 +07:00
Bobby Wibowo
8142eae9df
refactor: /users/{delete,disable,edit} API routes
...
simplify self.assertPermission function to only assert permission
fixed hard-coded "root" user protection not being asserted first
2022-08-09 17:51:31 +07:00
Bobby Wibowo
0a62002a6e
fix: re-create "root" user if users table is empty
...
previously it'd always re-create it if "root" user itself is missing
from users table
this facilitates not having "root" user altogether
2022-08-09 17:28:21 +07:00
Bobby Wibowo
6ff735badb
feat: wrap add to album db query in transaction
...
additionally allow superadmins to arbitrarily add/remove files to/from
albums via manual API calls, instead of only allowing root user
2022-08-09 17:18:56 +07:00