This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

You are unable to upload a large file to the file attachment control.

Symptoms

The File Attachment is failing when trying to attach a file over 30 MB. If the file size lower then it's fine.

The file could not be uploaded. The network might be down or web server is unreachable. Contact your administrator.

Image

Troubleshooting Steps

To allow 'Maximum allowed content length' to be large enough to accept larger files, you can do the following:

1. Open the IIS and expand Sites > K2 > Runtime.
2. On this page under IIS, click 'Request Filtering'.
3. Next, right-click the page and select 'Edit Feature Settings...'.
4. Change 'Maximum allowed content length' to the desired maximum size.

Please also refer to the links below:

https://docs.microsoft.com/en-us/iis/configuration/system.webServer/security/requestFiltering/requestLimits/ https://help.k2.com/onlinehelp/k2five/userguide/5.2/default.htm#Create/K2Designer/Controls/FileAttachment/FileAttachmentControl.htm?