File Upload and Download
File input elements are HTML controls in the form of
They allow users to upload files, which will be stored as a process instance variable of the type Bytes. Larger files will take longer to process and may crash the browser, so there is a soft file size limit of 5MB. You can overwrite this limit using the
File Upload is not supported for Internet Explorer 9.
Files can be uploaded using the
<input type="file" cam-variable-name="INVOICE_DOCUMENT" cam-variable-type="File" cam-max-filesize="10000000" />
In the example above, the user can upload a document with a maximum filesize of 10MB. The uploaded file will be stored as process instance variable with the name
Besides uploading a file, it is also possible to present the user with a download link or displaying files as images.
cam-file-download directive turns a link into a file download link.
The above link will allow the user to download the file stored in the variable
If the link has no text content, the filename of the file will be set as text content.
Displaying an Uploaded Image
If the user uploaded an image, it can be displayed using an
<img> tag. There is no special directive for this yet.
use the generated link as value for the
Note: the above example uses the angular js integration.