diff --git a/index.js b/index.js index 61610cb..0ed209f 100644 --- a/index.js +++ b/index.js @@ -120,7 +120,7 @@ app.post("/upload", upload, function(req, res) { } } ); - fs.rmdir( + fs.rm( "./public/uploads/" + req.files.file.uuid, { recursive: true }, function(err) { @@ -142,7 +142,7 @@ app.post("/upload", upload, function(req, res) { } } ); - fs.rmdir( + fs.rm( "./public/uploads/" + req.files.file.uuid, { recursive: true }, function(err) { diff --git a/public/uploads/0febf137-bef8-4c9b-8443-a54ced9f6668/file/images.jpeg b/public/uploads/0febf137-bef8-4c9b-8443-a54ced9f6668/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/0febf137-bef8-4c9b-8443-a54ced9f6668/file/images.jpeg and /dev/null differ diff --git a/public/uploads/1b71c52c-8e1f-4aab-85fb-de28892d2bac/file/images.jpeg b/public/uploads/1b71c52c-8e1f-4aab-85fb-de28892d2bac/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/1b71c52c-8e1f-4aab-85fb-de28892d2bac/file/images.jpeg and /dev/null differ diff --git a/public/uploads/7c7428e4-a764-43a0-9554-8179a9e6d73e/file/images.jpeg b/public/uploads/7c7428e4-a764-43a0-9554-8179a9e6d73e/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/7c7428e4-a764-43a0-9554-8179a9e6d73e/file/images.jpeg and /dev/null differ diff --git a/public/uploads/80c40714-46be-4ee2-9737-90054c99ae8f/file/images.jpeg b/public/uploads/80c40714-46be-4ee2-9737-90054c99ae8f/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/80c40714-46be-4ee2-9737-90054c99ae8f/file/images.jpeg and /dev/null differ diff --git a/public/uploads/8708f1d5-b415-40fa-b1c5-8473010491ec/file/images.jpeg b/public/uploads/8708f1d5-b415-40fa-b1c5-8473010491ec/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/8708f1d5-b415-40fa-b1c5-8473010491ec/file/images.jpeg and /dev/null differ diff --git a/public/uploads/90f73a1a-9450-42a4-951c-d5dbf656a3d6/file/images.jpeg b/public/uploads/90f73a1a-9450-42a4-951c-d5dbf656a3d6/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/90f73a1a-9450-42a4-951c-d5dbf656a3d6/file/images.jpeg and /dev/null differ diff --git a/public/uploads/bin/1641202636610.jpeg b/public/uploads/bin/1641202636610.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/bin/1641202636610.jpeg and /dev/null differ diff --git a/public/uploads/e5e6d34e-2bb9-4dfc-bac2-aacd0577632c/file/images.jpeg b/public/uploads/e5e6d34e-2bb9-4dfc-bac2-aacd0577632c/file/images.jpeg deleted file mode 100644 index 0ae2e91..0000000 Binary files a/public/uploads/e5e6d34e-2bb9-4dfc-bac2-aacd0577632c/file/images.jpeg and /dev/null differ diff --git a/views/index.pug b/views/index.pug index 057fa2e..ce56299 100644 --- a/views/index.pug +++ b/views/index.pug @@ -10,11 +10,17 @@
Whos Cat is That??!? - + + +
center p not 100% success rate pls dont be too mad if it gets things wrong + script. + var loadFile = function(event){ + var image = document.getElementById('output'); + image.src = URL.createObjectURL(event.target.files[0]); + }; -