Maximum file size of attachments (uploads)
Q: What is the maximum file size of an attachment? How can I change it?
Problem: When we try to attach a file that is too large we get the following error: "Looks like application is not available. Please check your connection or server availability".
A: Targetprocess itself does not have a limit for the size of the uploaded files. However, application settings apply a default limit which is set in IIS to 30 Mb. For on-demand (cloud) accounts this limit is already changed to 100Mb. For on-site customers, it is possible to manually increase this size.
To make this change you will need a connection to your Targetprocess hosting server and Administrator permissions to apply necessary changes. Otherwise please contact your administrator and ask him/her to make the changes.
In order to increase default size, please modify IIS and Targetprocess settings.
Modify limit in IIS settings
Run the IIS manager (Run->inetmgr) at your hosting server. Apply the following changes:
Request filtering -> HTTP verbs -> Actions -> Edit Features settings -> Edit Request filtering settings -> Request Limits -> Maximum allowed content length = 30000000
The measurement unit is Bytes. To increase the limit from 30 Mb to 100 Mb, change it to 100000000 and save settings.
Alternatively, the same action can be performed via editing the configuration file. File is located here by default:
Add the following lines into the section named <system.webServer>:
<requestLimits maxAllowedContentLength="1000000000" />
Modify limit in Targetprocess application settings
We will also need to modify the Targetprocess configuration file, located here by default:
Find the line:
<httpRuntime executionTimeout="3600" maxRequestLength="50240" requestValidationMode="2.0" />
The value maxRequestLength should be modified. Measurement unit is Kb. Set it to 100000 for 100 Mb limit and save the file.
You should restart your website for the changes to be applied.
Still have a question?
We're here to help! Just contact our friendly support team