# Webhook to replace glide image URL with Google drive Share link

**URL:** <https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981>\
**Category:** Project Showcase\
**Created:** [January 10, 2021, 9:26pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981 "2021-01-10T21:26:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![yinon\_raviv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yinon_raviv/32/1627_2.png) [@yinon\_raviv](https://community.glideapps.com/u/yinon_raviv)\
**Post date:** [January 10, 2021, 9:26pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/1 "2021-01-10T21:26:57Z")

</div>

Hi Gliders,

As I’m using webhooks with integromat for a while now, I thought to share with you a nice scenario which replace the image URL created by glide and stored in glide storage with a link from your google drive after uploading the file to it and getting a share link.

Part 1: [Loom | Free Screen & Video Recording Software](https://www.loom.com/share/1f02d7c9dd434f0b83f4d07fbf9f046c)

Part 2: [Loom | Free Screen & Video Recording Software](https://www.loom.com/share/212b4b05d84a497eb436aa5abbbb07b0)

Part 3: [Loom | Free Screen & Video Recording Software](https://www.loom.com/share/6ad08c2ffbd64217a9879822b3fd102b)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 10, 2021, 11:01pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/2 "2021-01-10T23:01:02Z")

</div>

I assume this takes away the storage space the original link occupies, right? Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![yinon\_raviv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yinon_raviv/32/1627_2.png) [@yinon\_raviv](https://community.glideapps.com/u/yinon_raviv)\
**Post date:** [January 11, 2021, 5:30am UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/3 "2021-01-11T05:30:52Z")

</div>

According to glide if an image is not displayed it’s not supposed to be counted against your storage but you can add also another step to delete the glide url all together

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [January 11, 2021, 6:24am UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/4 "2021-01-11T06:24:35Z")

</div>

@yinon_raviv thanks a lot for sharing. It has inspired me to get started with ingromat. You have shown it is really straight forward.  
Really appreciate that you took the time to do the videos - very informative and in correct speed for me.

---

<div class="post-metadata">

**Author:** ![yinon\_raviv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yinon_raviv/32/1627_2.png) [@yinon\_raviv](https://community.glideapps.com/u/yinon_raviv)\
**Post date:** [January 11, 2021, 6:36am UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/5 "2021-01-11T06:36:57Z")

</div>

My pleasure 😉

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [December 14, 2021, 2:09pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/6 "2021-12-14T14:09:29Z")

</div>

Hi @yinon_raviv,  
11 months later 🙂  
The links in your original post aren’t working anymore. I was wondering if you have a workaround to moving files files (not images) from the Glide storage to Google Drive and then permanently delete them from the Glide storage?  
The reason being that Glide storage links are public and we need to upload confidential data.  
Thanks

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 14, 2021, 2:14pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/7 "2021-12-14T14:14:13Z")

</div>

> [@Test\_Test](#):
>
> The reason being that Glide storage links are public and we need to upload confidential data.

Will users of your app need to be able to access the uploaded files?  
If yes, then you may have a problem if the files are in GDrive folders with restricted access.

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [December 14, 2021, 2:28pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/8 "2021-12-14T14:28:03Z")

</div>

> [@Darren\_Murphy](#):
>
> GDrive folders with restricted access

That’s exactly the point. Access to the app will be restricted to a specific domain and so will the access to the GDrive. This is a corporate app and we are working towards a 100% closed garden.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 14, 2021, 2:56pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/9 "2021-12-14T14:56:25Z")

</div>

Yes, I understand. I have a similar situation (which is why I created that [feature request](https://community.glideapps.com/t/private-storage-option/31011)).

I guess my point is that if files are stored in GDrive and not public, then when an app user follows a link to a file, then they’ll be asked to authenticate (regardless of the fact they may already be logged into the app with their Google Account). And I don’t believe there will be any way to show the contents of the files in the app.

Getting back to your earlier question…

> [@Test\_Test](#):
>
> I was wondering if you have a workaround to moving files files (not images) from the Glide storage to Google Drive and then permanently delete them from the Glide storage?

If the files are being uploaded to a table that’s linked to a Google Sheet, then it’s easy enough.  
Glide will store the links to the files, and these links will show up in the Google Sheet. So all you need to do is fetch the files via those links, store them in GDrive, and then replace the links in the Google Sheet. You could automate this with some Apps Script, or an automation tool such as Integromat.

Once the original links have been replaced and are no longer referenced in your app, the files will be purged from Glide storage. I’m not 100% sure, but I think this happens within 30 days.

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [December 14, 2021, 4:20pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/10 "2021-12-14T16:20:57Z")

</div>

> [@Darren\_Murphy](#):
>
> the files will be purged from Glide storage

Sorry to keep insisting on this, but do you happen to have a reference to the documentation on this purging process?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 14, 2021, 4:44pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/11 "2021-12-14T16:44:27Z")

</div>

> **[Glide Docs](https://www.glideapps.com/docs)**
>
> Welcome to Glide Docs, a steadily growing collection of articles and videos on how to use Glide. We can’t wait to see what you build!

> [@Deleting Uploaded Images/Files](https://community.glideapps.com/t/deleting-uploaded-images-files/27014/9):
>
> Deleting a file link should free up space almost immediately. The file is not actually deleted for a few days.

> [@IMAGE PICKER when we deleted a photo](https://community.glideapps.com/t/image-picker-when-we-deleted-a-photo/860/9):
>
> Files not referenced from your sheet are deleted after 7 days.

> [@Firebase storage reliability](https://community.glideapps.com/t/firebase-storage-reliability/11214/2):
>
> Yes, if you remove a link to the file, we will eventually delete it.

> [@Storage usage handling (files and images)](https://community.glideapps.com/t/storage-usage-handling-files-and-images/7123/7):
>
> This is now live. Just delete links to files, and they will be removed.

> [@Upload image to Cloudinary from within Glide](https://community.glideapps.com/t/upload-image-to-cloudinary-from-within-glide/11204/3):
>
> Uploaded files will be deleted within 30 days of being removed from your app.

---

<div class="post-metadata">

**Author:** ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)\
**Post date:** [December 14, 2021, 5:12pm UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/12 "2021-12-14T17:12:33Z")

</div>

WOW, that’s one detailed answer. Thanks @Jeff_Hager !  
Circling back to the original topic of this thread, does anyone have an automation template to use here? i.e. - four steps:

1. Retrieve files based on links to Glide’s storage
2. Save files to a designated Google Drive folder
3. Retrieve link to files on Google Drive
4. Replace Glide storage links with GDrive links  
Thanks!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 15, 2021, 12:20am UTC](https://community.glideapps.com/t/webhook-to-replace-glide-image-url-with-google-drive-share-link/20981/13 "2021-12-15T00:20:26Z")

</div>

In Integromat, it should be like below:

1/Have a webhook step to start, in Glide, send info to that webhook everytime you add a new row that contains URLs that needs to be replaced.

2/Add a HTTP module to download that URL in step 1.

3/Add a Drive module to upload the file in step 2.

4/Add a Google Sheets module to search the row to replace in your sheet, I think the column to search can be the URL column.

5.Update the row found with the new URL from Drive.
