diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-14 18:40:39 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-14 18:40:39 +0100 |
commit | 82815eb6700332b2fb41bcbbf2224471f66bb5a0 (patch) | |
tree | 9b6e68ff2ce9afbf0b115f2e666c92f8c27937df /server/controllers/api/videos | |
parent | 7b0956ec4f7753c864c4cea220e6f189327baa93 (diff) | |
download | PeerTube-82815eb6700332b2fb41bcbbf2224471f66bb5a0.tar.gz PeerTube-82815eb6700332b2fb41bcbbf2224471f66bb5a0.tar.zst PeerTube-82815eb6700332b2fb41bcbbf2224471f66bb5a0.zip |
Fix concurrency issue on video upload
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
199 | await renamePromise(videoPhysicalFile.path, destination) | 199 | await renamePromise(videoPhysicalFile.path, destination) |
200 | // This is important in case if there is another attempt in the retry process | 200 | // This is important in case if there is another attempt in the retry process |
201 | videoPhysicalFile.filename = video.getVideoFilename(videoFile) | 201 | videoPhysicalFile.filename = video.getVideoFilename(videoFile) |
202 | videoPhysicalFile.path = destination | ||
202 | 203 | ||
203 | // Process thumbnail or create it from the video | 204 | // Process thumbnail or create it from the video |
204 | const thumbnailField = req.files['thumbnailfile'] | 205 | const thumbnailField = req.files['thumbnailfile'] |