tags:

views:

371

answers:

2

I have the following seetings in my web.config file.

<httpRuntime executionTimeout="90000" maxRequestLength="204800" />

But I am not able to upload anyfile which are greater than 50MB. Wht could be the reason. The web browser keeps on waiting for the upload to finish but anyfile lesser than 50MB gets uploaded without any issues. Are there any other pleases I need to check?

A: 

Hi (unknown)

Perhaps 50MB is the maximum allowed filesize upload on the webserver? If this is the case usually an errormessage is returned.

Can you find out what the allowed maximum uploaded filesize on the webserver is?

P.S.: Information about the system would be nice. (Windows/Linux/Mac, IIS/Apache ...)

Regards Sigersted

Sigersted
A: 

Place this in your web.config

  <system.web>
     <httpRuntime executionTimeout="360" maxRequestLength="100000" />

That enables a 360 second timeout and 100,000 Kb of upload data at a time.

If that doesn't work, run this command on your IIS server. (replace [IISWebsitename])

C:\Windows\System32\inetsrv>appcmd set config "[IISWebsitename]" -section:requestFiltering -requestLimits.maxAllowedContentLength:100000000 -commitpath:apphost

That enables 100,000,000 bytes of upload data at a time.

Carter