aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/files/uploadPOST.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-03-02 22:07:24 +0900
committerPitu <[email protected]>2019-03-02 22:07:24 +0900
commitce76a8ec7ba2084ab75fb901933b3d4d84505032 (patch)
tree8b883904e8e41c85ae0f1c7de74aebb6e050a831 /src/api/routes/files/uploadPOST.js
parentFix token (diff)
downloadhost.fuwn.me-ce76a8ec7ba2084ab75fb901933b3d4d84505032.tar.xz
host.fuwn.me-ce76a8ec7ba2084ab75fb901933b3d4d84505032.zip
Be able to add a file to multiple albums
Diffstat (limited to 'src/api/routes/files/uploadPOST.js')
-rw-r--r--src/api/routes/files/uploadPOST.js4
1 files changed, 0 insertions, 4 deletions
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);
}