Zip Component
Provides utility methods for working with zip files
Component key: zip
Description
The Zip component helps with handling and manipulating .zip
files.
Actions
Compress Gzip
Compress Gzip file | key: compressGzip
Input | Notes |
---|---|
File Data data / Required file | File to Gzip compress |
Decompress Gzip
Decompress Gzip file | key: decompressGzip
Input | Notes |
---|---|
Gzip File Data data / Required file | Gzip data to decompress |
Unzip
Decompress a Zip file | key: unzip
Input | Notes |
---|---|
Zip File Data data / Required file | Zip data to decompress |
Example Payload for Unzip
Example Payload for Unzip
{
"data": [
{
"name": "filename.txt",
"data": {
"data": {
"type": "Buffer",
"data": [
104,
101,
108,
108,
111
]
},
"contentType": "text/plain"
},
"path": "path/"
}
]
}
Zip
Compress a Zip file | key: zip
Input | Notes |
---|---|
Files data / Required files | Files to include in the Zip; should be an object with filename keys and values containing file contents |
Collection Tools has useful utilities for building up data to provide to the Zip action.
Example Payload for Zip
Example Payload for Zip
{
"data": {
"type": "Buffer",
"data": [
104,
101,
108,
108,
111
]
},
"contentType": "application/zip"
}