FlowmageDocs

Upload attachment

BetaChanges data

Attaches a file to an Asana task.

Settings

SettingWhat it is
ConnectionRequiredThe Asana connection the step signs in with.
Task idRequiredThe task to attach the file to.
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.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `asana`)
parentIdtext
nametexta file name, listed in `requires.files`
contentBase64textits `{{ }}` must give a string

Output

FieldType
attachmentobject
attachment.gidIdstring
attachment.nameFile namestring
attachment.download_urlDownload addressstring
Sample output, and the expression for each field
  • attachment
    • download_url"https://app.asana.com/download/1"
    • gid"1"
    • name"report.pdf"

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>",
    "name": "<file name>",
    "parentId": "<task id>"
  },
  "label": "Upload attachment",
  "type": "asana.uploadAttachment",
  "version": 1
}