Set default timeout to 3 minutes when uploading files (#6399)
This commit is contained in:
parent
0278df6173
commit
6ea08b9dc2
1 changed files with 1 additions and 0 deletions
|
|
@ -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<ClientResponse>;
|
||||
promise.progress!(onProgress).then(onComplete).catch(onError);
|
||||
|
|
|
|||
Loading…
Reference in a new issue