'How to increase time-out error time span of Rest web API in .NET

My Web API Already published. One of our application specification is upload an image (there are 3 images can uploaded). From the front end we already compressed the image from (at least) 3 MB into 500 KB. and there is no issue with that and when post or get data just need 1,2 - 1,3 seconds.

From frontend we are using BASE64.

But Our User request to us some Enhancement where they need to upload an image (without size & Resolution compressing) with original size, where the size of an one image is 3MB (at least). we have tried with existing Web API and there is a major issue occur, which is our application cannot post the data into backend.

My assumption is there need a long time to upload a large image and then the connection timed out.

If the my assumption is right, so please help me, How to increase the time out when large images are uploaded ?

I had tried to use form-data, but still take long time to upload the large images.

this my JSON. Sorry, I can just upload image.. cause limit characters in stackoverflow that can post.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source