(Transfer) ASP.NET supported maximum upload file size

xiaoxiao2021-03-06  121

Colleagues encountered a problem, using DataSet to submit a relatively large data set, and then check the data found that the default maximum maximum uploaded file for ASP.NET is 4M, which can be configured in Web.config.

Configure the ASP.NET HTTP Runtime setting. This section can be declared at your computer, site, application, and subdirectories.

Optional attribute

Property Option Description AppRequestQueuelImit ASP.NET will queue the maximum number of requests for the application. When there is no sufficient free thread to handle the request, the request will be queued. When the queue exceeds the limit specified in this setting, the income request will be refused through the "503 - server too busy" error message. ExecutionTimeout indicates that the maximum number of seconds allows the request is allowed before being automatically turned off by ASP.NET. MaxRequestLength Indicates the maximum file upload size supported by ASP.NET. This limitation can be used to prevent denial of service attacks caused by users from passing a large number of files to the server. The specified size is in KB. The default is 4096 KB (4 MB). MinfreelocalRequenceFreethreads ASP.NET keeps the minimum number of free threads that are allowed to perform new local requests. The number of threads is to be reserved from the request incorporated from the local host to prevent some requests to issue sub-requests for the local host during their processing. This avoids a deadlock that may be caused by recursive re-entering web servers. Minfreethreads allow the minimum number of free threads for new requests. ASP.NET is a request for the additional thread to complete its processing to keep these threads free. UsefullyqualifiedRedirectURL indicates whether the client is fully limited (using {hyperlink "http: // server / path"} format, which is necessary for some mobile controls), or indicates whether to send relative redirection to Client. True Specifies that the client is reactive needs to be sent in a fully qualified format. This is achieved by automatically converting all redirects that are not a fully qualified format to a fully qualified format. FALSE Specifies that the client reordering does not need to be automatically converted to a fully qualified format. False is the default option. VersionHeader Specifies the value of ASP.NET with the version header sent by each response. Microsoft Visual Studio .NET uses this property to determine the current ASP.NET version. This is not required for product environments, and can be disabled by removing this property from Web.config or Machine.config, or setting this property as empty string (VersionHeader = ").

Example

The following example specifies the HTTP runtime parameter for the ASP.NET application.

转载请注明原文地址:https://www.9cbs.com/read-126791.html

New Post(0)