Skip to main content
Skip table of contents

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

acceptedFileTypes

File type to filter by in the selection dialog.

  • Data binding possible

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 (*), e.g.

  • text/*: Text files

  • image/*: Graphic files

    • image/jpeg: Only JPG files

    • image/png: Only PNG files

  • video/*: Video files

  • audio/*: Audio files

  • application/*: Files that are linked to a specific program

  • multipart/*: Multipart data

  • message/*: Messages

  • model/*: Files that represent multidimensional structures

fileId

Identifier that can be used by the process developer.

  • Data binding possible.

Possible values: Any string

maxSizeMB

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
<?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"
XML
<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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.