filesafe/controllers
Bobby Wibowo 62a977542e
Switched to BLAKE3 for file hashing [MORE]
UPDATE YOUR CONFIG FILE IF YOU USE CHUNKED UPLOADS!
Read more about this at the end.

Added new dependency: blake3

Hashes will be created as the uploads are being written to disk.
With exception for chunked uploads!
For them specifically, their hashes will be created as they're being
rebuilt into a single file.
Should still be a lot better than the previous case where it had to
re-read the already written files.

To support that feature, added a new file
controllers/multerStorageController.js.
It's just a custom storage engine for Multer.

chunkSize option now allows setting max chunk size from config file.
Previously it was hardcoded to 95MB, but assuming you have paid
Cloudflare plans, you can actually have up to 500MB.

Also moved the option to be after maxSize and before urlMaxSize.
Made a lot more sense to me this way, as chunked uploads only work on
regular uploads.

Updated v1 version string and rebuilt client assets.
2020-05-29 02:52:58 +07:00
..
albumsController.js Added sorting feature for Manage Uploads 2020-04-04 23:36:43 +07:00
authController.js !!! RUN "yarn migrate" !!! 2020-05-16 22:32:32 +07:00
multerStorageController.js Switched to BLAKE3 for file hashing [MORE] 2020-05-29 02:52:58 +07:00
pathsController.js Fixed racing condition in initial dirs creation 2020-05-28 23:10:56 +07:00
permissionController.js Added group bypass to virus scanning 2019-11-06 03:35:04 +07:00
tokenController.js Added client assets update detection 2020-04-30 05:56:28 +07:00
uploadController.js Switched to BLAKE3 for file hashing [MORE] 2020-05-29 02:52:58 +07:00
utilsController.js more video extensions for thumbs and reorder 2020-05-25 22:47:24 -05:00