Set a max upload file size for FTP IIS7.5
-
Friday, November 30, 2012 9:32 PM
Server 2008 R2 with IIS and FTP roles installed.
I tried setting the Maximum Content legnth in the FTP Request Filtering Settings, but it did not allow me to restrict the uploading file size, only the downloading file size. Uploading is from an external source to the server.
Is there a way to limit the file size upload but not the file size download in IIS FTP role?
Thanks,
Todd
All Replies
-
Sunday, December 02, 2012 7:29 PM
Server 2008 R2 with IIS and FTP roles installed.
I tried setting the Maximum Content legnth in the FTP Request Filtering Settings, but it did not allow me to restrict the uploading file size, only the downloading file size. Uploading is from an external source to the server.
Is there a way to limit the file size upload but not the file size download in IIS FTP role?
Thanks,
Todd
A web application running in IIS7 on Windows Server 2008 will reject any upload that is larger than 30MB. This is the default size limit for IIS7. To increase the maximum file size, add the following code to <system.webServer> in the web.config file:
(This example sets the limit to 500MB)<security> <requestFiltering> <requestLimits maxAllowedContentLength=”500000000″ /> </requestFiltering> </security>
You must restart IIS for the setting to take effect.
-
Monday, December 03, 2012 1:05 PM
A web application running in IIS7 on Windows Server 2008 will reject any upload that is larger than 30MB. This is the default size limit for IIS7. To increase the maximum file size, add the following code to <system.webServer> in the web.config file:
(This example sets the limit to 500MB)
<security> <requestFiltering> <requestLimits maxAllowedContentLength=”500000000″ /> </requestFiltering> </security>
You must restart IIS for the setting to take effect.
That works for transferring files through a web application, but this is not the case for the FTP service. I just tested again to verify with a 50MB file.
I need a way to limit file sizes that are uploaded to the server through the FTP service.
Adjusting the FTP request filtering apparently only limits the download file size.
-
Tuesday, December 04, 2012 9:21 AMModerator
Hi,
As it is an IIS setup related question, you could post thi IIS forum instead:
TechNet Subscriber Support in forum |If you have any feedback on our support, please contact tnmff@microsoft.com.
-
Tuesday, December 04, 2012 12:51 PM
Thanks,
I started a new thread here:
http://forums.iis.net/p/1193472/2036340.aspx/1?p=True&t=634902041936225213
- Marked As Answer by Shaon ShanMicrosoft Contingent Staff, Moderator Friday, December 07, 2012 6:26 AM

