|
||
Import jobs that upload a physical file from the browser prior to import (Excel and text file imports) are limited to files that are 8 MB or less by default. If larger import files are required, the default value can be increased using the following configuration instructions.
File upload sizes up to 2GB are possible, but it requires the following modifications in the Astra Schedule application web configuration file.
Warning: The sections and attributes in this file are case sensitive. The application will not work correctly if the edits are written using a case other than shown.
The attribute maxRequestLength is assigned to the <httpRuntime> tag in the <location path="~api"><system.web> section of the Astra Schedule web.config file which is located in the following path:
C:\Ad Astra\AstraSchedule\7.X.x.x\Instances\InstanceName\Schedule\Web.Config
maxRequestLength
This is the attribute that needs to be edited and increased to allow file sizes to be uploaded into the application’s directory that are greater than 8 MB. The limit must be specified in KB. This limit can be used by web administrators as a security measure to prevent denial of service attacks that are caused, for example, by users maliciously posting large files to the server. The default value for Astra Schedule is 81920 (8 MB).
<httpRuntime maxRequestLength="81920" />
To enable large file uploads you need to change the value of this attribute to the largest size allowable for your web server and web hosting security. If an Astra Schedule user selects and uploads files with a total size larger than maxRequestLength, this might eventually result in a "Page not found" error (which is the default error of the .Net Framework) or other page errors when they reach the server timeout value.
To make the above modifications to your application for large file uploads, perform the following:
1.Open Windows Explorer, navigate to the application web.config file (see path above) and open it.
2.Under the <location path="~api"> section location you will find the httpRuntime attribute for a system.web configuration.
3.In the <httpRuntime> element locate the maxRequestLength attribute. If it does not exist, add it and set the value as follows:
<httpRuntime maxRequestLength="102400" />
The configuration above allows uploads of files of up to 100MB and should look like the following:
<configuration> ...
<location path="~api">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<httpRuntime maxRequestLength="102400" />
... </configuration>
There may exist another setting in IIS7 that needs to be changed to allow greater files size to be uploaded.
•Add the following lines to the Default Web Server web.config file:
<system.webserver>
...
<security >
<requestFiltering>
<requestLimits maxAllowedContentLength="1024000000" />
</requestFiltering>
</security>
</system.webserver>
•Open the file C:\Windows\System32\inetsrv\config\applicationHost.config and find the following line:
<section name="requestFiltering" overrideModeDefault="Deny" />
•Set the overrideModeDefault property to "Allow". The line should look like this:
<section name="requestFiltering" overrideModeDefault="Allow" />