Symptoms
Use new images with Picture Control
Diagnoses
Hi,
We are facing a problem with the Picture control.
We cannot upload new image files.
The error message says the maximum size was exceeded, although we are trying to use a small image.
Please check the screenshot.
Thank you,
Victor
Resolution
Dear Victor,
ISSUE:
We are facing a problem with the Picture control.
We cannot upload new image files.
The error message says the maximum size was exceeded, although we are trying to use a small image:
Full message:
Koala.jpg
0 bytes
The image attachment exceeds the maximum size of 2048.00 MB
In fiddler:
The file attachment exceeds the maximum size of {0} KB.
RESOLUTION:
In file C:Program Files (x86)K2 blackpearlK2 smartforms Designerweb.config
Reduce the maxRequestLength by changing
maxRequestLength="2097152" (Corresponding to 2GB)
to
maxRequestLength="32000" (Corresponding to 32MB)
Note: this issue is reproductible here with a 4.6.10 but not a 4.6.11.
This setting "maxRequestLength" indicates the maximum file upload size supported by ASP.NET. This limit can be used to prevent denial of service attacks caused by users posting large files to the server. The size specified is in kilobytes. The default is 4096 KB (4 MB).
You have 2 days to accept or reject this resolution. If you feel the issue is not resolved, please reject this resolution.
Otherwise, please take the opportunity to submit feedback, using the link included in this message.
Thanks, and regards
Olivier Chatagnon