NTT
NTT

Reputation: 121

Download more than 80MB of data using Axios

Is there any functionality or module available to Get 80MB of JSON object data?

The obtained JSON object will be made available to download as csv/xls.

Currently I am using axios.get("/users/100000"); . this is breaking the code.

Thanks in Advance.

Upvotes: 0

Views: 1936

Answers (1)

Markido
Markido

Reputation: 459

You can increase the limit in Axios;

let resp = await axios({
        method: 'get',
        url: url,
        maxContentLength: 100000000,
        maxBodyLength: 1000000000
})

Upvotes: 1

Related Questions