Reputation: 15197
I am trying to upload a file witch is 6.38 mb, but i did research and you can only upload 4 mb.
I was told to go change maxRequestLength in the section in the web.config file.
But i cant fine or maxRequestLength in my web.configs.
Could some one please tell me where i could find them using MVC or how to let larger files be uploaded.
Upvotes: 0
Views: 275
Reputation:
Its in configuration section of web.config file, if you don`t have httpRuntime element then add it, it would look like following:
<configuration>
<system.web>
<httpRuntime
...
maxRequestLength = 'number'
... />
</system.web>
</configuration>
Fore more info see this MSDN Article
Upvotes: 1
Reputation: 3353
Did you look for httpRuntime key as explained bellow?
http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
AFAIK if the key is NOT present in your config file you can add it yourself.
You may have to adjust the timeout values too if you increase the allowed upload size.
P.S. 4MB or 6MB are NOT large uploads - I worked on the sites where the average uploads were measured in GBs, i.e. 5-10GB was NOT the largest.
Upvotes: 1