Create Airtable Record with Attachment

I’ve created a form where users can upload files via the “Drag and Drop” element. This, as expected, results in a list of URLs in an array.

I have an “Attachment” field in Airtable. Mapping the URL to the Attachment field results in an error when attempting to create the record.

How do I get the uploaded file directly into Airtable?

I kept working with this. The variable that is created by the Drag/Drop module creates and array with objects in it. Each object contained more key/value pairs than allowed by Airtable. I created a secondary variable that corrected the key/value pairs to url and filename per object.

Ran that through a For Loop to create the array of files, then mapped that array to the attachment field.

2 Likes

Awesome! Thanks for taking the time to share the solution on here, really appreciate it :slight_smile: