Is there any way to make some sections of the web.config file only apply to a single file (or directory, or a group of files, etc.)
Basically I would like to apply the following thing only to a single page in the application, the rest should use the default settings: (it limits the upload size to 32M)
<system.web>
<httpRuntime maxRequestLength="32768" executionTimeout="360"/>
</system.web>
The point is that I only want that particular page to accept large files.
You can use:
<location path="UploadPage.aspx">
<system.web>
<httpRuntime maxRequestLength="33554432" executionTimeout="360" />
</system.web>
</location>
More info here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With