Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Attaching screenshot via api

Topic Labels: API
683 1
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I captured a screenshot via code and it returns me data uri of image. I need to upload that on airtable but when i tried manually through aortable link url option in attachment field, getting this error “Error fetching URL metadata.”

I need to confirm that i will accept data uri or not. How i will upload screenshot through code if its not accepting data uri of image.

Thanks in anticipation

1 Reply 1

Welcome to the Airtable community!

The Airtable Standard API can only create attachments from a traditional url, not a data uri.

A workaround is to temporarily upload your image to a 3rd party service that accepts data uri for an image and returns a url. Then you can use that url to upload the attachment to Airtable.