REVERT and add video file name notice

main
Filip Borum Poulsen 2 years ago
parent 12869d9060
commit 893e147cc3

@ -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("/home/steady/video-player/public/videos/video.mp4", function (err) {
req.files.file.mv(uploadPath + req.files.file.name, function (err) {
if (err) {
return res.status(500);
}

@ -19,6 +19,7 @@
</style>
</head>
<body>
<h1>The file should always be named video.mp4</h1>
<form ref='uploadForm'
id='uploadForm'
action='/upload'

Loading…
Cancel
Save