From 4ab3796fbde97862a86588239e440058f21a4e3e Mon Sep 17 00:00:00 2001 From: Pitu Date: Tue, 12 Mar 2019 06:19:57 +0000 Subject: Add TODO --- src/api/routes/files/uploadPOST.js | 2 ++ 1 file changed, 2 insertions(+) (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 ef95b83..4e6ac55 100644 --- a/src/api/routes/files/uploadPOST.js +++ b/src/api/routes/files/uploadPOST.js @@ -11,6 +11,8 @@ const fs = require('fs'); 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: Think if its worth making a folder with the user uuid in uploads/ and upload the pictures there so that this way at least not every single file will be in 1 directory */ class uploadPOST extends Route { -- cgit v1.2.3