mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
more explicit error messages for file uploads
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user