From: Chocobozzz Date: Wed, 14 Feb 2018 17:40:39 +0000 (+0100) Subject: Fix concurrency issue on video upload X-Git-Tag: v0.0.24-alpha~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=82815eb6700332b2fb41bcbbf2224471f66bb5a0;p=oweals%2Fpeertube.git Fix concurrency issue on video upload --- 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']