How to increase the max upload file size in ASP.NET?

后端 未结 15 2926
青春惊慌失措
青春惊慌失措 2020-11-22 06:09

I have a form that excepts a file upload in ASP.NET. I need to increase the max upload size to above the 4 MB default.

I have found in certain places referencing the

15条回答
  •  清酒与你
    2020-11-22 06:10

    I have a blog post on how to increase the file size for asp upload control.

    From the post:

    By default, the FileUpload control allows a maximum of 4MB file to be uploaded and the execution timeout is 110 seconds. These properties can be changed from within the web.config file’s httpRuntime section. The maxRequestLength property determines the maximum file size that can be uploaded. The executionTimeout property determines the maximum time for execution.

提交回复
热议问题