Any way to upload files from an image URL field to a Glide Image field?

For some reason Glide can’t display image URLs from Instagram profiles / posts. In Airtable I would have to convert these to an image field which I could do via automation - any way to do this in glide?

What’s the url structure you’re currently trying to display? You may try adding “/media/?size=…” to the end of an instagram post link. Try out a template column to automate this.

1 Like

hmm that didn’t work - the structure is


could it have something to do with the fact that these urls may be temporary?

Seems like you accidentally uploaded the picture itself. Can you check and let us know the structure you’re using?

https://scontent-lga3-1.cdninstagram.com/v/t51.2885-15/393107596_3688382244753128_4733251351003911559_n.jpg?stp=dst-jpg_e35_s1080x1080&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_cat=108&_nc_ohc=AAhU5G3uz3kAX92uGDl&edm=AOQ1c0wBAAAA&ccb=7-5&ig_cache_key=MzIxNjQyNjY3MTc4MjEwMzM2Mg%3D%3D.2-ccb7-5&oh=00_AfBose30IE0OZmAUdIMVFaVA9gO5hLfB1fM9pVqOuE5Rlg&oe=65359031&_nc_sid=8b3546

thank you!

That URL has a ig_cache_key value that I think might make it temporary. There’s a bunch of other IDs that might contribute to that.

@MegannLock has the right approach there.

Say for this post:

https://www.instagram.com/p/CyWn_tQyKAH/

The image link (for the first image only anyway) would be:

https://www.instagram.com/p/CyWn_tQyKAH/media?size=l

interesting. When I do that with a post it changes the URL to what I had. In Glide, using a template using /media?size=l won’t work in rendering the thumbnails either, even though those are valid urls. Really what it needs to be is a way that it will upload the image from the image url and turn it into a glide image. Any other ideas?

You can try to create a new sheet in your Google Sheets or Excel file, add a column for the Instagram URLs, and create a formula to extract the image URL from the Instagram URL. Then you can link this sheet to your Glide app as a data source and create a new image component to display the extracted image URL.

so I tried that but the image component in glide says image not found (even though in sheets it was rendered)
Screen Shot 2023-10-20 at 8.50.56 PM

Is that the “displayUrl” column?

The format I gave you earlier works just fine with an image component.

Have you tried creating a template column with that format?

ahhhh yes it works now there was an extra dash in the template column. Thank you so much

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.