Dev Center
When attempting to upload images using any of the HTTPUploadThroughPost*** methods the upload fails and you receive this error.
var strHTTPServer = location.hostname;
DWObject.HTTPPort = location.port == "" ? 80 : location.port;
DWObject.IfSSL = true;
DWObject.HTTPPort = 443;
For example: If the URL for the scan page is “http://localhost:3253/….”, you should set the port to 3253.
Please reset the maximum transferable data size. If you are using ASP.NET
, you can change the value in the following line in the Web.Config
file.
<httpRuntime maxRequestLength="1000000"/> // In kilobytes
This line may also be required
<requestLimits maxAllowedContentLength="300000000" /> // In bytes
The following is an example config file
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime executionTimeout="3000" maxRequestLength="102400"/>
<compilation debug="true" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="300000000" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
If you are using PHP
, you can change the value in the following line in the php.ini
file:
upload_max_filesize = 2M
latest version