# Limit in-app memory per user

**URL:** https://community.glideapps.com/t/limit-in-app-memory-per-user/29705
**Category:** Ask for Help
**Created:** [July 29, 2021, 1:47pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705 "2021-07-29T13:47:01Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [July 29, 2021, 1:47pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/1 "2021-07-29T13:47:01Z")

</div>

Hi Gliders !  
For each user in my app, I want to know how much memory they are using with their uploaded files.  
The idea is to limit the amount of memory per user.  
Does anyone know how can I do this ?

It’s supposed to look like this :  
 ![Groupe 3420](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/c/ac5124dd74dbbd05f024463e935c8295b3369724.png)

---

<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: [July 29, 2021, 1:56pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/2 "2021-07-29T13:56:02Z")

</div>

For this you would have to use an external automation service, let’s say Integromat, to connect with a third-party service to derive the file’s size and write back to the Sheet. You can later delete that file in the same scenario to save your Drive’s space.

I just checked my scenarios and see Google Drive does return a file size. I assume it’s calculated in bytes.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/e/8e8a894d9c36813a2ef6a68a28ffa080df7c63be.png)

---

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [July 29, 2021, 2:18pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/3 "2021-07-29T14:18:19Z")

</div>

Thx ! I’ll test this ! And I’ll tell you back !

---

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [July 29, 2021, 2:28pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/4 "2021-07-29T14:28:14Z")

</div>

Would you please detail the process ? I’m not very familiar with Integromat.  
And, how did you split the file link ?

---

<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: [July 29, 2021, 11:44pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/5 "2021-07-29T23:44:14Z")

</div>

The process should be:

- Create a new scenario in Integromat with the first node being a custom webhook.

- Create an “On submit” action in Glide (assuming you’re letting users upload files through a form).

- In that “On submit” action use a webhook action, copy the webhook link in step 1, paste and save it with an easy-to-remember name.

- Add a parameter for that webhook action and name it something like “File URL”.

- Start a test run in Integromat, upload a new file and submit in Glide to send some data to the webhook.

- Once the webhook’s first test is completed, add a Google Drive node in Integromat, choose to upload the file to a folder of your choice.

- Add another Google Sheets node, connect it to the Sheet that is storing your app data, use a “Search row” action, find the row that has the URL matching with the URL from the Webhook.

- Add a Google Sheets node, this time we update the row we find in the previous step, update the “File size” column with the “Size” number from Google Drive.

- Finally, add a Google Drive module to delete the file you uploaded previously in the process.

If you struggle with this just let me know, you can share your app and your Integromat credentials with me privately so I can chime in and help during the weekend.

---

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [July 31, 2021, 12:05am UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/6 "2021-07-31T00:05:50Z")

</div>

Nice ! Thx ! I’ll try it !

---

<div class="post-metadata">

### Author: ![Jorge\_Hernandez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jorge_hernandez/32/25768_2.png) [@Jorge\_Hernandez](https://community.glideapps.com/u/Jorge_Hernandez)
#### Post date: [July 31, 2021, 1:54am UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/7 "2021-07-31T01:54:22Z")

</div>

Only for curiosity …

Have you noticed a loss of performance in your app?

---

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [July 31, 2021, 2:12am UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/8 "2021-07-31T02:12:34Z")

</div>

Nope ! Actually, I’m working on an app like Dropbox. Basically, for this kind of app, limit memory per user is needed. But Glide doesn’t display the size of uploaded files yet. So, I was trying to find a way to do it !

---

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [August 3, 2021, 3:46am UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/9 "2021-08-03T03:46:22Z")

</div>

I was not really confortable with Integromat, so I did it with Zapier !  
It works well ! Thank you so much for the explanation 🙏 !

---

<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: [August 3, 2021, 4:17am UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/10 "2021-08-03T04:17:02Z")

</div>

If you ever wanted to change to Integromat and need help just tell us 😉

Integromat provides much better price and flexibility than Zapier, in my opinion.

---

<div class="post-metadata">

### Author: ![elvirabtny](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/elvirabtny/32/23719_2.png) [@elvirabtny](https://community.glideapps.com/u/elvirabtny)
#### Post date: [August 3, 2021, 4:24am UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/11 "2021-08-03T04:24:54Z")

</div>

Ok thanks ! I keep it on mind ! 😉

---

<div class="post-metadata">

### Author: ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)
#### Post date: [January 17, 2024, 4:51pm UTC](https://community.glideapps.com/t/limit-in-app-memory-per-user/29705/12 "2024-01-17T16:51:01Z")

</div>


