Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix concurrency issue on video upload

Chocobozzz82815eb67003
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 10b6c000f7..564ccd3f8d 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']