locked
Error In Upload Large File RRS feed

  • Question

  • User338455301 posted

    Hi, 
    i upload a file (200 mb) but during upload show this message in chrome console and upload stop it,
    Failed to load resource: net::ERR_CONNECTION_RESET

    and set session for 1 day 

        options.IdleTimeout = TimeSpan.FromDays(1);

    whats a problem ? how to prevent from this error ? 

    Sunday, June 28, 2020 8:13 AM

All replies

  • User-474980206 posted

    you need to increase the max request size:

    https://www.talkingdotnet.com/how-to-increase-file-upload-size-asp-net-core/

    Sunday, June 28, 2020 11:10 PM
  • User338455301 posted

    Thanks 
    but when i use this code in web.config in host i  have error 500 , why ?


    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <location path="." inheritInChildApplications="false">
        <system.webServer>
          <handlers>
            <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
          </handlers>
          <aspNetCore processPath=".\itsaco_RefrencenetCoreCMS.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="OutOfProcess" />
    	   <security>
            <requestFiltering>
              <!-- This will handle requests up to 50MB -->
              <requestLimits maxAllowedContentLength="5242880000" />
            </requestFiltering>
          </security>
        </system.webServer>
      </location>
    </configuration>
    <!--ProjectGuid: 637b3f43-694c-41d5-b77b-158dff42ad09-->



    Monday, June 29, 2020 5:20 AM
  • User-17257777 posted

    Hi elahi1mahdi,

    Seems 5242880000 is larger than the maximum value.

    See the below link:

    https://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7

    Best Regards,

    Jiadong Meng

    Monday, June 29, 2020 9:28 AM