Fix concurrency issue on video upload
This commit is contained in:
parent
7b0956ec4f
commit
82815eb670
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue