c# - maxAllowedContentLength ignored -


i have following settings in web config:

<system.web>     <compilation debug="true" strict="false" explicit="true"     targetframework="4.6" />     <httpruntime requestvalidationmode="2.0" targetframework="4.6" maxrequestlength="92160" executiontimeout="3600" />   </system.web>   <security>     <requestfiltering>       <requestlimits maxallowedcontentlength="94371840" />      </requestfiltering>   </security> 

they both equate 90 mb. using asynchronous uploader telerik upload file. i've been testing uploading 100 mb files see if error being triggered. however, file uploaded without issue. can't figure why error not being triggered. issue staring me right in face. can figure out why?

in system.web

<httpruntime maxrequestlength="90000" executiontimeout="3600" /> 

and in system.webserver

<security>     <requestfiltering>         <requestlimits maxallowedcontentlength="90000000" />     </requestfiltering> </security> 

important : both of these values must match , maxrequestlength measured in kilobytes maxallowedcontentlength in bytes , both values set 90mb

from iis7

or in iis (7):

select website want enable accept large file uploads. in main window double click 'request filtering' select "edit feature settings" modify "maximum allowed content length (bytes)"


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -