Skip to main content

Looking over the API documentation, it appears that attachments require a url key, so they must already be available on a web server. Is it possible to upload local files to Airtable via the API? I’d like to build my own form that POSTs to Airtable and uploads an image as an attachment, but it doesn’t look like this is currently possible. Am I missing something?



Thanks!

Right now this isn’t possible with the Airtable API alone. It’s something we’ll think about for future API versions though. A workaround for now is to use a different service (e.g. Filestack, imgur, etc.) to process the upload before then sending the url to Airtable. When Airtable processes the attachment, it will copy the file to Airtable’s own (S3) server for safekeeping, so it’s OK if the original uploaded file url is just temporary.


Thanks for the clarification!


+1 For uploading attachments via API. Once I learned this wasn’t possible, my whole world crumbled.


+1, uploading files via URL is pain.


+1, For uploading attachments via API!! would be so helpful…


will you ever consider incorporating a CDN or will it always be S3? I’d like to be able to use Airtable to deploy inventory images to a website and am curious about benchmarks.


+1. Does anyone know a service to temporary upload some images?


Would also like to see this added to the API.


What’s blocking this feature?


Would also really love to see this…going to explore the Filestack/imgur route, but was not estimating that I’d need to for my current little project. 🙂 Presumably no update on this as of March 2018, correct @Emmett_Nicholas?


Hi everyone, would also be very interested of providing an URL to add attachments to a record through the API!


It would be awesome to upload attachments via APIs. There are so many use cases for this feature.


I’d be really happy to see this as well. Any updates @Emmett_Nicholas?


+1 from me too. Disappointed that three years after the initial request uploading attachments using the API is still not available.


+1 from me too. Disappointed that three years after the initial request uploading attachments using the API is still not available.


Cloudinary is an awesome product that could be used for the file upload that then provides a URL to pull into airtable


it can technically be done using GraphQL…


+1 from me too. Disappointed that three years after the initial request uploading attachments using the API is still not available.


This is possible using api. Have a look on task create example



{


“fields”: {


“Truck_ID1”: I


“1232321321323123”


],


“Task_Type”: “Repairs (Parts & Labour)”,


“Images”:


{


“url”: “image path”


},


{


“url”: “image path”


}


],


“Job Type”: /


“Order”


],


“Status”: “Client response?”


}


}


This is possible using api. Have a look on task create example



{


“fields”: {


“Truck_ID1”: I


“1232321321323123”


],


“Task_Type”: “Repairs (Parts & Labour)”,


“Images”:


{


“url”: “image path”


},


{


“url”: “image path”


}


],


“Job Type”: /


“Order”


],


“Status”: “Client response?”


}


}


@Kapil_dev - the question here is how to get a file directly uploaded into airtable (not just a link to a file hosted somewhere on the web). So, it would require an intermediary solution (like my suggestion of cloudinary) in order to upload the file first, then get the resulting url, then publish that url into airtable. But currently can’t get around that intermediary step.


@Kapil_dev - the question here is how to get a file directly uploaded into airtable (not just a link to a file hosted somewhere on the web). So, it would require an intermediary solution (like my suggestion of cloudinary) in order to upload the file first, then get the resulting url, then publish that url into airtable. But currently can’t get around that intermediary step.


Have you implemented this with cloudinary and it worked? Would like to try this route.


Have you implemented this with cloudinary and it worked? Would like to try this route.




I’ve done a ton of work with cloudinary API and used their widget. It’s very well done and works well. I’ve also pushed attachments to Airtable using the API (as a url). So I have no doubt its possible on both sides. You would just need to build it into your application. If you provide more details on your specific scenario I can give more specifics on how to approach it. Feel free to ping me at dan@openside.com




I’ve done a ton of work with cloudinary API and used their widget. It’s very well done and works well. I’ve also pushed attachments to Airtable using the API (as a url). So I have no doubt its possible on both sides. You would just need to build it into your application. If you provide more details on your specific scenario I can give more specifics on how to approach it. Feel free to ping me at dan@openside.com


Thanks, I will shoot you an email.




I’ve done a ton of work with cloudinary API and used their widget. It’s very well done and works well. I’ve also pushed attachments to Airtable using the API (as a url). So I have no doubt its possible on both sides. You would just need to build it into your application. If you provide more details on your specific scenario I can give more specifics on how to approach it. Feel free to ping me at dan@openside.com


I want to thank you so much Dan for suggesting cloudinary. I have got this up and running beautifully and the images are uploading to Airtable. I will be writing up a blog post with the code to help others and will post the link here for anyone who needs help.


As promised, my write up of my solution.





As promised, my write up of my solution.





Looks great Chinara, good job! You should post this to the Show & Tell forum as well.



Dan @ Openside


Looks great Chinara, good job! You should post this to the Show & Tell forum as well.



Dan @ Openside


Ok will do. Hope they don’t mind the duplication.


Reply