FlowmageDocs

Download file

BetaReads data

Downloads one file from a Oneflow contract as base64.

Settings

SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
Contract idRequiredThe contract's Oneflow id — a number.
File idRequiredThe file's Oneflow id — a number, from List files → files[].id.
Download asA name to give the download, e.g. agreement.pdf. Leave empty for Oneflow's own name.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
contractIdtext
fileIdtext
downloadAstext

Output

FieldType
nameFile namestring
contentTypestring
base64File contents (base64)string
sizeSize in bytesnumber
Sample output, and the expression for each field
  • base64""
  • contentType""
  • name""
  • size0

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "contractId": "<contract id>",
    "downloadAs": "",
    "fileId": "<file id>"
  },
  "label": "Download file",
  "type": "oneflow.downloadFile",
  "version": 1
}