File Storage
Reads and writes data from a file stored inside the file storage.
Categories: file-storage, helpers
Type: fileStorage/v1
Actions
Read from File as String
Name: read
Reads data from the file as string.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
fileEntry | File | FILE_ENTRY | The object property which contains a reference to the file to read from. | true |
Example JSON Structure
{ "label" : "Read from File as String", "name" : "read", "parameters" : { "fileEntry" : { "extension" : "", "mimeType" : "", "name" : "", "url" : "" } }, "type" : "fileStorage/v1/read"}
Output
Sample Output:
Sample content
Type: STRING
Write to File
Name: write
Writes the data to the file.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
content | Content | STRING | String to write to the file. | true |
filename | Filename | STRING | Filename to set for data. By default, “file.txt” will be used. | null |
Example JSON Structure
{ "label" : "Write to File", "name" : "write", "parameters" : { "content" : "", "filename" : "" }, "type" : "fileStorage/v1/write"}
Output
Type: FILE_ENTRY
Properties
Name | Type | Description |
---|---|---|
extension | STRING | |
mimeType | STRING | |
name | STRING | |
url | STRING |
Output Example
{ "extension" : "", "mimeType" : "", "name" : "", "url" : ""}
Download File
Name: download
Download a file from the URL.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
url | URL | STRING | The URL to download a file from. | true |
filename | Filename | STRING | Filename to set for data. By default, “file.txt” will be used. | null |
Example JSON Structure
{ "label" : "Download File", "name" : "download", "parameters" : { "url" : "", "filename" : "" }, "type" : "fileStorage/v1/download"}
Output
Type: FILE_ENTRY
Properties
Name | Type | Description |
---|---|---|
extension | STRING | |
mimeType | STRING | |
name | STRING | |
url | STRING |
Output Example
{ "extension" : "", "mimeType" : "", "name" : "", "url" : ""}