Fix concurrency issue on video upload

pull/297/head
Chocobozzz 2018-02-14 18:40:39 +01:00
parent 7b0956ec4f
commit 82815eb670
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ async function addVideo (req: express.Request, res: express.Response, videoPhysi
await renamePromise(videoPhysicalFile.path, destination)
// This is important in case if there is another attempt in the retry process
videoPhysicalFile.filename = video.getVideoFilename(videoFile)
videoPhysicalFile.path = destination
// Process thumbnail or create it from the video
const thumbnailField = req.files['thumbnailfile']