From 82815eb6700332b2fb41bcbbf2224471f66bb5a0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 14 Feb 2018 18:40:39 +0100 Subject: [PATCH] Fix concurrency issue on video upload --- server/controllers/api/videos/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 10b6c000f..564ccd3f8 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts @@ -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'] -- 2.25.1