Help

Attaching screenshot via api

Topic Labels: API
1121 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Charanjit_Kaur
4 - Data Explorer
4 - Data Explorer

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.