Skip to content

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

NameLabelTypeControl TypeDescriptionRequired
fileEntryFileFILE_ENTRYFILE_ENTRYThe object property which contains a reference to the file to read from.true

Output

Sample Output:

Sample content

Type: STRING

JSON Example

{
"label" : "Read from File as String",
"name" : "read",
"parameters" : {
"fileEntry" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
}
},
"type" : "fileStorage/v1/read"
}

Write to File

Name: write

Writes the data to the file.

Properties

NameLabelTypeControl TypeDescriptionRequired
contentContentSTRINGTEXTString to write to the file.true
filenameFilenameSTRINGTEXTFilename to set for data. By default, “file.txt” will be used.null

Output

Type: FILE_ENTRY

Properties

NameTypeControl Type
extensionSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT
urlSTRINGTEXT

JSON Example

{
"label" : "Write to File",
"name" : "write",
"parameters" : {
"content" : "",
"filename" : ""
},
"type" : "fileStorage/v1/write"
}

Download File

Name: download

Download a file from the URL.

Properties

NameLabelTypeControl TypeDescriptionRequired
urlURLSTRINGTEXTThe URL to download a file from.true
filenameFilenameSTRINGTEXTFilename to set for data. By default, “file.txt” will be used.null

Output

Type: FILE_ENTRY

Properties

NameTypeControl Type
extensionSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT
urlSTRINGTEXT

JSON Example

{
"label" : "Download File",
"name" : "download",
"parameters" : {
"url" : "",
"filename" : ""
},
"type" : "fileStorage/v1/download"
}