This component centralizes file upload and download actions, avoiding the need to navigate to the file manager or implement a custom component for basic file handling functions.
It is added to the interface during the editing phase, just like any other component, by dragging the icon shown in the image and creating a new component that initially appears as an empty table.
Once the component is created, each new item must be configured using the "Add" button in the component header.
This opens a dialog with the basic configuration options for each item in the component.
Each item in the component corresponds to a file that will be uploaded or downloaded, and can include options such as the file name, destination path, and other relevant metadata.
The configuration options shown in the dialog include:
Note that the fields above must refer to a file that already exists in the system and has been previously uploaded via the file manager.
Below the file path configuration section, there is an optional section to define nodes that perform various actions when a new file is uploaded:
Advanced options are also available and can be accessed by clicking the “Advanced Options” button at the bottom of the item configuration dialog.
This opens an additional dialog with the following options:
These validations are mainly used for spreadsheet files and help ensure that the uploaded data is consistent and meets system requirements.
At the bottom, there are also icon view options. You can choose to show or hide action icons for each item in the component, such as:
Once the item is configured, it is displayed in the component’s table, where you can see file details such as the item name, base file name, current file, date and time of last modification, the user who modified it, and available actions.
Each row in the table represents an uploaded file or a file available for download, and actions can be performed on each one, such as downloading the base file, downloading the uploaded file, viewing the upload history, uploading a new file, or navigating to an interface.
In component editing mode, each item can be modified or deleted.
You can upload a new file by clicking the upload button. This opens a dialog where you can select the file you want to upload.
Once the file is selected, automatic validations will be performed and the file will be uploaded into the system.
When a new file is uploaded, the component’s table is updated to reflect the new file, showing the user who performed the upload and the upload date. All other table fields remain unchanged.
If you want to view the upload history, you can click the history button. This will open a dialog showing a list of previously uploaded files along with details such as upload date and the user who uploaded them.
From this dialog, you can also download previously uploaded files or restore a file from history, which will replace the current file with the selected version from the history.
In component editing mode, you can also choose which columns to display in the component's table item list to customize the view according to the user’s needs.
It is also possible to reorder the items in the table by dragging them to the desired position using the icon on the left side of each item in the table.