Monday, August 11, 2008

How to Change the file size in FileUpload control

I tried to upload file using FileUpload Control in ASP.NET but I had a problem which is the maximum file size is 4 MB, and I was uploading a file larger than the maximum size.
So to solve this problem, in the HTTPRuntime section in the Web.config file set the maxRequestLength in KB:
<system.web>
  <httpRuntime maxRequestLength="1500000" />
</system.web>

Source: https://www.nilebits.com/blog/2007/07/string-functions-startswith-and-endswith-are-case-sensitive-in-dot-net/

No comments:

Post a Comment