08-30-2018 05:51 AM
Hello,
What is the size limit of a file uploaded by a FormFile?
If there is a limit, is it possible to increase it?
Thank you.
Yohann.
09-05-2018 01:29 PM
Hullo Yohann,
The max size of HTTP-Uploads is restricted by asp.net, not by GMSC. The default request size of asp.net WebApps is 4 MB.
Since uploads from GMSC forms go to the workflow-engine, you should consider to alter the config sections in the web.config file of the Workflow Web Application ({GMSC-install-path}\Program\Workflows\web.config).
For example, to raise the max request size to 10 MB:
<configuration> <system.web> <httpRuntime maxRequestLength="10240" /> <!-- 10 MB in KB (10*1024) --> </system.web> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="10485760" /> <!-- 10 MB in BYTES (10*1024*1024)--> </requestFiltering> </security> </system.webServer> <configuration>
However - be aware that raising the request size limit may open up an attack vector; I would recommend to talk to your web server operators about this.
See https://stackoverflow.com/questions/288612/how-to-increase-the-max-upload-file-size-in-asp-net#18531... for some advice, how the request limit is set in web.config.