8 minute file upload timeout

This commit is contained in:
@wwwjim 2020-10-03 20:57:11 -07:00
parent e65a438aac
commit e0b840871e
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,9 @@ export default async (req, res) => {
.send({ decorator: "UPLOAD_NOT_ALLOWED", error: true });
}
req.setTimeout(480000);
res.setTimeout(480000);
console.log(`[upload] upload for ${user.username} started`);
const response = await Upload.formMultipart(req, res, {
user,

View File

@ -83,6 +83,11 @@ export default async (req, res) => {
id: key.owner_id,
});
console.log("[upload] establishing timeouts");
req.setTimeout(480000);
res.setTimeout(480000);
console.log("[upload] timeouts set");
const uploadResponse = await Upload.formMultipart(req, res, {
user,
});