Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The OTYS connection the step signs in with. |
| File contentsRequired | Base64 of the file — {{ file("cv.pdf").base64 }}. |
| File nameRequired | text |
| Content type | text |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `otys`) |
content | textits `{{ }}` must give a string |
name | text |
contentType | text, by default "application/octet-stream" |
Output
| Field | Type |
|---|---|
ouidFile OUID | string |
nameFile name | string |
mimeTypeContent type | string |
sizeSize in bytes | number |
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
}