FIX file location

main
Filip Borum Poulsen 2 years ago
parent df4b9ffc0c
commit 12869d9060

@ -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);
}

Loading…
Cancel
Save