fix(core): Fix problem with uploading large files (#3370)

*  fix

*  moved setting to axios config
This commit is contained in:
Michael Kret 2022-05-27 19:17:44 +03:00 committed by GitHub
parent dc77594a1e
commit d3cecfc55b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -541,7 +541,10 @@ async function proxyRequestToAxios(
return requestPromiseWithDefaults.call(null, uriOrObject, options);
}
let axiosConfig: AxiosRequestConfig = {};
let axiosConfig: AxiosRequestConfig = {
maxBodyLength: Infinity,
maxContentLength: Infinity,
};
let axiosPromise: AxiosPromise;
type ConfigObject = {
auth?: { sendImmediately: boolean };