From 5067d67477c1aa163642a663b80bf05755f5e3a2 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Mon, 29 Jan 2018 22:14:48 +0100 Subject: [PATCH] the timeout screwed up large uploads --- res/static/res/script/compiled/home.js | 2 +- res/static/res/typescript/lib/uploader.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/static/res/script/compiled/home.js b/res/static/res/script/compiled/home.js index b4c56fa..38f959d 100644 --- a/res/static/res/script/compiled/home.js +++ b/res/static/res/script/compiled/home.js @@ -163,7 +163,7 @@ var UploadWorker = /** @class */ (function () { type: 'POST', url: "/api/file", data: formData, - timeout: 300000, + timeout: 7200000, cache: false, async: true, crossDomain: false, diff --git a/res/static/res/typescript/lib/uploader.ts b/res/static/res/typescript/lib/uploader.ts index 34a4c77..611bade 100644 --- a/res/static/res/typescript/lib/uploader.ts +++ b/res/static/res/typescript/lib/uploader.ts @@ -75,7 +75,7 @@ class UploadWorker { type: 'POST', url: "/api/file", data: formData, - timeout: 300000, // 5 minutes + timeout: 7200000, // 2 hours cache: false, async: true, crossDomain: false,