Better comment

This commit is contained in:
Skyler Mäntysaari
2023-01-25 01:34:34 +02:00
parent d8f00d4809
commit 09c0f1b113

View File

@@ -26,7 +26,9 @@ function fileFilter(req: Request, file: any, cb: any) {
if (!req.user) {
return cb(new UnauthorizedException());
}
// TODO: Create new API endpoint for mimetypes and use that here.
// TODO: Create new API endpoint for mimetypes and use that here as browser's
// file mimetype is not to be trusted blindly.
// Reference about issue with it: https://stackoverflow.com/questions/26149389/mime-type-missing-for-rar-and-tar/26222177#26222177
cb(null, true);
//if (
// file.mimetype.match(