Failed to upload large video file.

I am trying to upload a large file with a file loader to my asp.net project but cannot load it. I also made some changes to my web.config , but it did not work. A small video uploads successfully, but the problem occurs when downloading a large file.

  <system.web> <httpRuntime maxRequestLength="1048576"/> <pages validateRequest="false"/> <compilation targetFramework="4.5" defaultLanguage="c#" debug="true"/> <machineKey validationKey="1234567890123456789012345678901234567890AAAAAAAAAA" decryptionKey="123456789012345678901234567890123456789012345678" validation="SHA1" decryption="Auto"/> <customErrors mode="Off"/> <authentication mode="Forms"/> </system.web> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1073741824"/> </requestFiltering> </security> </system.webServer> 
+5
source share
1 answer

maxRequestLength takes precedence over maxAllowedContentLength , since it is less.

Try increasing its value to 1073741824 .

+1
source

All Articles