Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to upload large video file

I am trying to upload large video file using file up loader in my asp.net project but unable to upload. I also made some changes in my web.config file but not working. Video with small size is upload successfully but problem occur in large video file uploading.

 <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>
like image 941
Ankush Guhe Avatar asked Sep 22 '16 13:09

Ankush Guhe


1 Answers

maxRequestLength takes priority over maxAllowedContentLength, since its smaller.

Try increasing its value to 1073741824.

like image 154
Vax Avatar answered Oct 17 '22 23:10

Vax