The Upload File control allows users to upload files to the server.
These files will be stored in a temporary location on the server for the duration of the user's session. Once the session ends, they are deleted. It is therefore important to write these files to a known location in order to access them at a later stage again. This can be done by looping over the files using a ForEach action inside of a script or eventhandler.
Please note! All uploaded files in the temporary directory are lost once the session ends.
VisibleSet to False if you don't want this control to render on the page and be visible to the user.
File must be smaller than x MBIf this value has to be increased, change the maxRequestLength value in the web.config of the generated application. The maxRequestLength is specified in kilobytes and defaults to 4096 KB (4 MB). See here for more information on maxRequestLength.
<configuration> <system.web> <httpRuntime targetFramework="4.6" maxRequestLength="153600" /> </system.web> </configuration>
ErrorThis could be caused by a number of reasons, of which one could be that the maxAllowedContentLength is not large enough. Increasing this value in the web.config of the generated application could resolve the issue. The maxAllowedContentLength is specified in bytes and defaults to 30000000 (28.6 MB). See here for more information on maxAllowedContentLength.
<configuration> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="30000000" /> </requestFiltering> </security> </system.webServer> </configuration>