mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 02:52:25 +03:00
8 minute file upload timeout
This commit is contained in:
parent
e65a438aac
commit
e0b840871e
@ -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,
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user