filesafe/controllers
Bobby ce71a9e8d6
feat: better size check for url uploads
first layer is via sending HEAD request to the url to determine its size
via content-length header
however not all hosts properly set the header, so we ignore it if
it isn't a valid number

next via size option in fetch(), which supposedly limits response body
size during the request itself (?)

lastly via checking actual bytes written to physical file as reported by
fs.createWriteStream()
2022-05-08 15:19:29 +07:00
..
handlers fix: remove token from local storage if invalid 2022-05-06 21:58:23 +07:00
utils fix: remove token from local storage if invalid 2022-05-06 21:58:23 +07:00
albumsController.js chore: logger.inspect 2022-05-05 14:33:16 +07:00
authController.js feat: allow mods to actually delete albums 2022-05-05 13:58:54 +07:00
pathsController.js feat: list albums' total size and zip size 2021-02-12 15:48:40 +07:00
permissionController.js feat: usergroup-based file retention periods 2022-05-07 02:17:31 +07:00
tokenController.js feat: usergroup-based file retention periods 2022-05-07 02:17:31 +07:00
uploadController.js feat: better size check for url uploads 2022-05-08 15:19:29 +07:00
utilsController.js feat: usergroup-based file retention periods 2022-05-07 02:17:31 +07:00