aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/files
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-03-12 06:19:57 +0000
committerPitu <[email protected]>2019-03-12 06:19:57 +0000
commit4ab3796fbde97862a86588239e440058f21a4e3e (patch)
tree67d0bf16acf83c04af969495fbacd14351ec5fbd /src/api/routes/files
parentPossible fix for files not being purged (diff)
downloadhost.fuwn.me-4ab3796fbde97862a86588239e440058f21a4e3e.tar.xz
host.fuwn.me-4ab3796fbde97862a86588239e440058f21a4e3e.zip
Add TODO
Diffstat (limited to 'src/api/routes/files')
-rw-r--r--src/api/routes/files/uploadPOST.js2
1 files changed, 2 insertions, 0 deletions
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 {