Hi,
We've had a client once trying to attach a 19MB file to an InfoPath form. The client ran into all sorts of problems. Below is the response I've sent:
[quote user=kb;EN-US;295626
This article states that the default value for the maxRequestLength parameter in the <httpRuntime> section of the Machine.config file is 4096 (4 megabytes). As a result, files that are larger than this value are not uploaded by default.
The machine.config file can be found in the 'c:WINDOWSMicrosoft.NETFrameworkv1.1.4322CONFIG' directory. Please note that changing the maxRequestLength parameter may allow you to upload larger files, but you will probably also need to change the executionTimeout parameter to allow the longer upload time.
PLEASE NOTE:
K2.net 2003 is a workflow engine and as such was never intended to be and never will be a document management system.
It is STRONGLY (and I can not stress this enough) recommended NOT to upload files to K2.net larger than the 4MB default set by Microsoft. If you exceed these defaults, you will most probably cause timeouts in SQL Server, IIS, Web Services and InfoPath and will definitely occupy most of your machine resources. The whole performance of K2.net 2003 will also be negatively affected.
As an example:
If you start a simple 2 step InfoPath process with a 19MB file attachment which is then destined to be approved or discussed by 5 users, you will send 19MB through the InfoPath web service to create and start the K2 process and K2 will create 5 copies of this file (95MB) to be stored in both the K2 and K2Log databases. With more Activities and more Destination users in your K2 process, you will dramatically increase this amount not to even mention the impact of enabling XML field auditing.
Apart from CPU and memory resources, your K2 and K2Log databases as well as the Transaction Log files will grow uncontrollably and you may very quickly run out of hard disk space.
Recommended solution:
A recommended solution would be to save the file to the file system on a network share and only store the path to the relevant file in K2.
Hope this helps,
Ockert
K2 Limit on InfoPath form sizes?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
