FlowmageDocs

Upload file

BetaChanges data

Uploads a file to OTYS and returns its OUID.

Settings

SettingWhat it is
ConnectionRequiredThe OTYS connection the step signs in with.
File contentsRequiredBase64 of the file — {{ file("cv.pdf").base64 }}.
File nameRequiredtext
Content typetext
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `otys`)
contenttextits `{{ }}` must give a string
nametext
contentTypetext, by default "application/octet-stream"

Output

FieldType
ouidFile OUIDstring
nameFile namestring
mimeTypeContent typestring
sizeSize in bytesnumber
Sample output, and the expression for each field
  • mimeType"application/pdf"
  • name"cv.pdf"
  • ouid"00000000-0000-0000-0000-000000000000"
  • 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>",
    "content": "<file contents>",
    "contentType": "application/octet-stream",
    "name": "<file name>"
  },
  "label": "Upload file",
  "type": "otys.uploadFile",
  "version": 1
}