| Block Group: | Data Services |
| Icon: | ![]() |
The Zip Download block returns, as binary, a ZIP file that combines the files at the specified paths. The ZIP file can then be downloaded using a Download File action.
For information on using dataflow blocks, see Dataflow.
Copying and pasting the output string contained in this block does not effectively transfer the binary content. Instead of copying and pasting, you must create a binding.
The following properties of the Zip Download block can take input and give output.
invoke causes the files to be converted to ZIP and to be output as binary. Only works if enabled is set to TRUE.
enabled specifies whether the block is currently set to convert the files.
autoRun specifies whether the files are converted automatically.
filePaths specifies the list of paths to the files to convert, separated by line breaks. Do not use commas to separate file names. You can drag files from the Project panel to this field. To edit text in a popup window, click the
Edit in Window icon. To create line breaks, press Alt + Enter in the block properties panel, or press Enter in the popup window.
A path that contains a . is treated as a file; any other path is treated as a folder, and all files in that folder and its subfolders are included.
basePath (optional) specifies the parent path of the specified files. If every file path starts with basePath, that part is removed from the file names inside the ZIP file.
The following properties of the Zip Download block can give output but cannot take input.
output is the ZIP file, expressed in binary.
onComplete fires when the files have been converted.
To add paths:
Edit in Window to open a zipDownload.filePaths panel.
The following image demonstrates a Zip Download block. In this example, a Zip Download block creates a ZIP file containing the assets folder and one JSON file.