From ce76a8ec7ba2084ab75fb901933b3d4d84505032 Mon Sep 17 00:00:00 2001 From: Pitu Date: Sat, 2 Mar 2019 22:07:24 +0900 Subject: Be able to add a file to multiple albums --- src/api/routes/files/uploadPOST.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/api/routes/files/uploadPOST.js') diff --git a/src/api/routes/files/uploadPOST.js b/src/api/routes/files/uploadPOST.js index e88091a..ef95b83 100644 --- a/src/api/routes/files/uploadPOST.js +++ b/src/api/routes/files/uploadPOST.js @@ -6,14 +6,11 @@ const log = require('../../utils/Log'); const jetpack = require('fs-jetpack'); const Busboy = require('busboy'); const fs = require('fs'); -const { dump } = require('dumper.js'); /* TODO: Strip exif data if the owner/user configured it as such TODO: If source has transparency generate a png thumbnail, otherwise a jpg. TODO: If source is a gif, generate a thumb of the first frame and play the gif on hover. TODO: If source is a video, generate a thumb of the first frame and save the video length. - TODO: Check that the async isAuthorized works and is not nulling out - TODO: Lowercase the file extensions */ class uploadPOST extends Route { @@ -23,7 +20,6 @@ class uploadPOST extends Route { async run(req, res, db) { const user = await Util.isAuthorized(req); - // TODO: .env variables are all casted to strings. pepehands if (!user && process.env.PUBLIC_MODE == 'false') return res.status(401).json({ message: 'Not authorized to use this resource' }); return this.uploadFile(req, res, db, user); } -- cgit v1.2.3