currently, working asp.net core , mvc6 need upload file size unlimited. have searched solution still not getting actual answer.
if have idea please help.
thanks.
you're getting 404.13 http status code when upload file on 30mb. if you're running asp.net core application in iis, iis pipeline intercepting request before hits application.
update web.config:
<system.webserver> <handlers> <add name="aspnetcore" path="*" verb="*" modules="aspnetcoremodule" resourcetype="unspecified"/> </handlers> <aspnetcore processpath="%launcher_path%" arguments="%launcher_args%" stdoutlogenabled="false" stdoutlogfile=".\logs\stdout" forwardwindowsauthtoken="false"/> <!-- add section file size... --> <security> <requestfiltering> <!-- measured in bytes --> <requestlimits maxallowedcontentlength="1073741824" /> <!-- 1 gb--> </requestfiltering> </security> </system.webserver>
previous asp.net applications needed section, it's not needed anymore in core requests handled middleware:
<system.web> <!-- measured in kilobytes --> <httpruntime maxrequestlength="1048576" /> </system.web>
Comments
Post a Comment