Settings in the Web.config
DEXTUpload.NET Professional component sets configurations in order to use the product in the "Web.config" file.
The configurations in "Web.config" are as follows:
- The <dextupload.net> section that includes values of the components
- A declaration in the "configSections" to read the <dextupload.net> section
- "FileUploadMonitorModule"(HTTP module) registration
- Setting the request size limit of IIS itself
- IIS 7.x or later + Classic pipeline
-
<?xml version="1.0"?> <configuration> <configSections> <!-- Defines a section for reading dextupload.net configuration. --> <sectionGroup name="dextupload.net"> <section name="settings" type="System.Configuration.SingleTagSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> </sectionGroup> </configSections> <!-- DEXTUpload.NET Professional configuration section --> <dextupload.net> <!-- Properties other than 'tempPath, authkey' are all omissible. --> <settings tempPath="~/files/temp" defaultPath="~/files/store" uploadTimeout="3600" maxFileLength="10485760" maxTotalLength="20971520" whiteExtensions="txt,jpg,png,gif,docx,xlsx,pptx,hwp,pdf,zip" availableNoFileExtension="true" filterAction="error" encoding="65001" compact="false" cleanerIntervalTime="60000" timeAgoForCleaning="24" enableCleaner="false" signatureDataFilePath="" methodFileSignatureChecking="noChecking" authkey="9Ubwly9EZZZhBENEep ... skip ... JyGxAJcB03gQQcM1Q"/> </dextupload.net> <system.web> <httpRuntime executionTimeout="3600" maxRequestLength="2048000"/> <httpModules> <!-- You must declare the "FileUploadMonitorModule" module to perform the file upload processing. --> <add name="FileUploadMonitorModule" type="DEXTUpload.NET.FileUploadMonitorModule, DEXTUpload.NET, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d71d611ccd9cc3c0"/> </httpModules> </system.web> <system.webServer> <security> <requestFiltering> <!-- The "maxAllowedContentLength" attribute of the "requestLimits" element is the size of the request data that IIS limits. DEXTUpload.NET Professional cannot exceed the default capacity limit used by IIS even if you set the upload limit. --> <requestLimits maxAllowedContentLength="209715200"/> </requestFiltering> </security> <modules> <!-- You must declare the "FileUploadMonitorModule" module to perform the file upload processing. --> <add name="FileUploadMonitorModule" type="DEXTUpload.NET.FileUploadMonitorModule, DEXTUpload.NET, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d71d611ccd9cc3c0" preCondition="managedHandler"/> </modules> </system.webServer> </configuration>
- IIS 7.x or later + Integrated pipeline
-
In the case of the integrated pipeline, there is no need to elements of the "httpRuntime" and "httpModules".
<?xml version="1.0"?> <configuration> <configSections> <!-- Defines a section for reading dextupload.net configuration. --> <sectionGroup name="dextupload.net"> <section name="settings" type="System.Configuration.SingleTagSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> </sectionGroup> </configSections> <!-- DEXTUpload.NET Professional configuration section --> <dextupload.net> <!-- Properties other than 'tempPath, authkey' are all omissible. --> <settings tempPath="~/files/temp" defaultPath="~/files/store" uploadTimeout="3600" maxFileLength="10485760" maxTotalLength="20971520" whiteExtensions="txt,jpg,png,gif,docx,xlsx,pptx,hwp,pdf,zip" availableNoFileExtension="true" filterAction="error" encoding="65001" compact="false" cleanerIntervalTime="60000" timeAgoForCleaning="24" enableCleaner="false" signatureDataFilePath="" methodFileSignatureChecking="noChecking" authkey="9Ubwly9EZZZhBENEep ... skip ... xAJcB03gQQcM1Q"/> </dextupload.net> <system.webServer> <security> <requestFiltering> <!-- The "maxAllowedContentLength" attribute of the "requestLimits" element is the size of the request data that IIS limits. DEXTUpload.NET Professional cannot exceed the default capacity limit used by IIS even if you set the upload limit. --> <requestLimits maxAllowedContentLength="209715200"/> </requestFiltering> </security> <modules> <!-- You must declare the "FileUploadMonitorModule" module to perform the file upload processing. --> <add name="FileUploadMonitorModule" type="DEXTUpload.NET.FileUploadMonitorModule, DEXTUpload.NET, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d71d611ccd9cc3c0" preCondition="managedHandler"/> </modules> </system.webServer> </configuration>
Unlike old products, officially DEXTUpload.NET Professional version 5 is supported only more IIS 7 or later.
Note) .NET Framework 4 version is supported IIS 6, but the product does not support the IIS 7.x sub-environment in policy.