ASP.Net - Maximum request length exceeded when uploading a video in my site Code Example

The code for Maximum request length exceeded when uploading a video in my site

<!-- If you are using IIS for hosting your application,
then the default upload file size is 4MB.
To increase it, please use this below section in your web.config
-->

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="1048576" />
    </system.web>
</configuration>

<!--For IIS7 and above, you also need to add the lines below:-->

 <system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
   </security>
 </system.webServer>
Code by IncludeHelp, on February 28, 2023 07:53

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.