From 12869d9060e9b52d8c752dcce035a8b96638f092 Mon Sep 17 00:00:00 2001 From: Filip Borum Poulsen Date: Thu, 21 Mar 2024 13:44:02 +0100 Subject: [PATCH] FIX file location --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f801d4e..6505778 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ app.post('/upload', function (req, res) { // The name of the input field (i.e. "sampleFile") is used to retrieve the uploaded file const uploadPath = path.join(__dirname, '/public/videos/'); - req.files.file.mv(uploadPath + "video.mp4", function (err) { + req.files.file.mv("/home/steady/video-player/public/videos/video.mp4", function (err) { if (err) { return res.status(500); }