]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/index.ts
more explicit error messages for file uploads
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / index.ts
index e8480d7494179b80758b1a722eeb0841e628a994..0dcd38ad20bd666ae13712b2d84daa0871ca105c 100644 (file)
@@ -174,8 +174,8 @@ function listVideoPrivacies (req: express.Request, res: express.Response) {
 }
 
 async function addVideo (req: express.Request, res: express.Response) {
-  // Processing the video could be long
-  // Set timeout to 10 minutes
+  // Transferring the video could be long
+  // Set timeout to 10 minutes, as Express's default is 2 minutes
   req.setTimeout(1000 * 60 * 10, () => {
     logger.error('Upload video has timed out.')
     return res.sendStatus(408)