Posting attachments to Airtable without a URL

Hey @Cobley , uploading files to Airtable is not straightforward. There are two approaches you can take.

  1. Having your file publicly available via URL, Airtable attachement field still broken? - #4 by giulioandreini
  2. Utilizing HTTP Request node to upload via Airtable API, Airtable Web API

In the latter case, you need to base64 encode your binary file and POST it with the body as below

{
    "contentType": "<MIME TYPE>",
    "file": "<BASE64 ENCODED STRING>",
    "filename": "<FILE NAME>"
  }

The workflow itself would look like below. You do need to make sure to update the URL itself in HTTP Request node to point to the actual base, record and field in question in place of /{baseId}/{recordId}/{attachmentFieldIdOrName}/.

3 Likes