Help

Pro-grammatically upload/create attachments

Topic Labels: API
15379 10
cancel
Showing results for 
Search instead for 
Did you mean: 
UME_System
4 - Data Explorer
4 - Data Explorer

Greetings devs!
First post here after doing a bit of googling to no avail…
I’m looking for an example of how to upload a zip archive to an attachment field. In the documentation there is mention of attachment objects but no mention of how to create one pro-grammatically. Any sample code or general guidance would be helpful regardless of language although Python would be greatly appreciated!

Cheers,

Jean

10 Replies 10
scubachris
5 - Automation Enthusiast
5 - Automation Enthusiast

So this is not a solution to the problem.  If you are using Airtable and are AUTHORING these documents (I am), to have to render them to a public URL in order to have Airtable copy the content is a bit ridiculous.  You should enable the ability to provide the document as a part of the create, or, perhaps enable a:
const id = ...stageAttachment(content);
const res = await base(table).create({ ..., attachmentId: id});


if you don't want to support that in the create.