From 6ea08b9dc28a4b7f8b17dea56ba7a9c515ce92f3 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Fri, 17 Jun 2022 04:52:50 -0400 Subject: [PATCH] Set default timeout to 3 minutes when uploading files (#6399) --- app/client/rest/files.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/client/rest/files.ts b/app/client/rest/files.ts index df057fdc4..b257e032c 100644 --- a/app/client/rest/files.ts +++ b/app/client/rest/files.ts @@ -72,6 +72,7 @@ const ClientFiles = (superclass: any) => class extends superclass { channel_id: channelId, }, }, + timeoutInterval: 3 * 60 * 1000, // 3 minutes }; const promise = this.apiClient.upload(url, file.localPath, options) as ProgressPromise; promise.progress!(onProgress).then(onComplete).catch(onError);