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:

  <httpRuntime maxRequestLength="1500000" />


Hire Me

Follow me on Facebook

Follow me

Do you find this Blog helpful?

Follow by Email

About Me

My Photo
Expert Senior Software Developer

Microsoft Business Card