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.tsindex 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, videoPhysiawait renamePromise(videoPhysicalFile.path, destination)// This is important in case if there is another attempt in the retry processvideoPhysicalFile.filename = video.getVideoFilename(videoFile)+ videoPhysicalFile.path = destination// Process thumbnail or create it from the videoconst thumbnailField = req.files['thumbnailfile']