Wednesday, November 21, 2012

Setting Upload File Size in IIS 7.0

Some time ago i faced an issue with a file uploading application. The issue was when i using the application on my local machine it does not gave me any issue with the file size and any file with any size was able to upload. Problem started to occur once the application is hosted on IIS. Files larger than about 30MB were not uploaded and any file with smaller size was uploaded successfully. I found out that the default upload file size in IIS is about 30MB.

To resolve this i had to change some settings in IIS

Open IIS Manager

Double click on Request Filtering

Click on Edit Feature Settings and on the window appear you can set your desired max allowed content length of the uploaded file.

In your web.config change the below settings

No comments:
Write comments
Recommended Posts × +