I have a react app which is using axios to upload file to server. Below is the code
const save = yield call(axios.put, url, searchCriteria.payload, {
params: params,
});
The issue is that, this code works fine as long as the payload size is less than 10mb. If the payload is lager than 10mb the request payload goes as empty. I have tried setting the content length as below
maxContentLength: 10000000,
maxBodyLength: 10000000
I have tried setting the length and timeout in web config file on iis but nothing seems to work for payload larger than 10mb.