Action "Upload"
The action Upload is created with the element <UploadAction/>
within <Actions>
. The action Upload enables to upload data into the web application.
The Technical Process that receives the uploaded file must return a confirmation or an error message. If the confirmation contains a message, this message is displayed as a pop-up window. Pop-up windows with error messages are displayed in any case.
The attribute process
is required for the element <UploadAction/>
.
In addition to the standard attributes for (7.4.0-en) Actions, the element <UploadAction />
can have the following attributes:
Attribute | Description |
---|---|
| File type to filter by in the selection dialog.
This attribute filters only by file types. The filter can be reset by the user to display and select all file types. Possible values: MIME types, also with wildcards (
|
| Identifier that can be used by the process developer.
Possible values: Any string |
| Maximum file size in mebibyte. Possible values: Integer |
Format of the uploaded data
The data is provided to the Technical Process that is defined with the attribute process
in a specific input format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<File>
<FileId>....</FileId>
<FileName>....</FileName>
<FileType>....</FileType>
<FileData>
....Base64 data....
</FileData>
</File>
The data in the element <FileData>
can be decoded with the Base64 Converter, for example.
Example
Example action "Upload file"
<DetailComponent path="Dashboard" displayName="Dashboard" default="true">
<Actions>
<UploadAction />
</Actions>
<FlowLayout>
…
</FlowLayout>
</DetailComponent>
Above code creates the following action:

For further information visit the section