Upload, Download and Delete Files with Big File Upload Element
File Upload
It uploads large files selected or dragged and dropped by the client to the server in HTTP multipart/form-data format. The process is performed in chunk logic to optimize network performance and prevent data loss in case of possible outages.
Drag and drop the file directly onto the element.
The system splits the file into chunks according to the Chunk Size parameter (example: 10 MB).
Each chunk is transmitted in turn to the server and stored in temporary memory.
On Upload Finish action is triggered when the upload is complete. The following values are generated with this action and should be used for administration:
File ID (GUID): Unique ID assigned by the system to the uploaded file.
File Name: The original file name that the user uploaded.
The File ID must be stored in the database and all downloads and deletes must be managed through this ID. Otherwise, the file cannot be processed.
File Download
Click on the Big File Upload element.
Open the Properties panel on the right edge.
Select On Upload Finish → Device → Download File From Server from the+ADD ACTION menu.
Configure the following fields:
File ID: Enter the unique ID number of the file to be downloaded. (Ex: “{{{uploadedFileId}}”)
File Name: Specify a name for the file to be downloaded. The file will be downloaded to the user's device with this name (Ex: “Report_2024.pdf”)
If the File ID is missing or entered incorrectly, the system cannot find the file and the download will fail. The ID must be obtained and stored during the download.
When the download request is triggered:
The system verifies the file with the specified File Path and File ID.
The MIME type is checked and the file is transferred to the client over HTTP.
The browser automatically downloads the file or offers the option to save it, depending on the user's settings.
Before the download is triggered, it must be checked whether the user has authorization over the file.
File Deletion
Click on the Big File Upload element.
Open the Properties panel on the right edge.
Select On Upload Finish → Device → Delete File From Server from the+ADD ACTION menu.
Configure the following fields:
File ID: The unique ID number of the file to be deleted.
If File Path and File ID do not match, the file cannot be detected and the operation will fail. File ID must be saved after upload.
When the delete operation is triggered:
The system verifies the file based on the File Path and File ID.
When the verification is complete, the file is permanently deleted from the server.
The deleted file cannot be recovered.
Before deletion, it must be checked that the file is not used in the system and is not referenced by other processes. Otherwise, system errors and data loss may occur.
By following this guide, you can use the Big File Upload element effectively in your application.