FlowmageDocs

Upload file

BetaChanges data

Attaches a file to a Oneflow contract.

Settings

SettingWhat it is
ConnectionRequiredThe Oneflow connection the step signs in with.
Contract idRequiredThe contract's Oneflow id — a number.
File nameRequiredThe file's name, extension included. Pick the file, then paste its base64 below.
File contentsRequiredBase64 of the file — {{ file("name").base64 }}. Multipart uploads over the "Use fixed IP address" lane are unverified; leave that toggle off for this node.
Upload as"attachment" or "expanded_pdf"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `oneflow`)
contractIdtext
nametexta file name, listed in `requires.files`
contentBase64textits `{{ }}` must give a string
uploadAs"attachment" or "expanded_pdf", by default "attachment"

Output

FieldType
fileobject
file.idnumber
Sample output, and the expression for each field
  • file
    • id1

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>",
    "contentBase64": "<file contents>",
    "contractId": "<contract id>",
    "name": "<file name>",
    "uploadAs": "attachment"
  },
  "label": "Upload file",
  "type": "oneflow.uploadFile",
  "version": 1
}