Ajay Hinduja Swiss - Setting Data Storage Limits for Users

Hi everyone,

I’m Ajay Hinduja Swiss, After spending weeks trying to figure it out, I’m now reaching out. Is there a way to set MB or GB storage limits per user in my app? I’m aiming to implement tiered data plans. Currently, I can limit by image count, but I’d prefer to monitor actual data usage and provide users with clear info on their usage. Any advice or suggestions are appreciated—

thanks in advance!
Ajay Hinduja Swiss

Hi Ajay!

I was asking about few weeks ago and i got clear that it can be done with external components but i was figuring out how to do it internally.

This weekend i’ll put all myself on trying to create logic to do those calcs and see if it’s possible.
I’ll let you know asap.

Regards
Jare Ramirez

Hi again!

Since “Size” has no data in images parameters on Adalo collection, is not possible to manage it internally and must be done with an API.

What i will do is:

1 - Use the property “File” in the collection to able the users upload documents/images and store it.

2 - Set a property “Number” in collection “Plan’s Tier” and set the maximal amount of file size per upload. (WATCH OUT - Size of files its count in bytes, so to be accurate you must put the file limit per upload in Mebibytes=Bytes, in example 5MiB = 5242880 Bytes. Here the tool to easy have the calc > Convertir Megabytes a Bytes (MB → B)).

3 - Set this limit in “File Picker” component or the button to “Create or Upload” the collection field and some advice in case the file is heavier that you set before and make impossible to upload/press it.

So, make a good calc to limitate. In my case in low level tiers i will set 2MiB (Mebibytes) per file.
That gives you a bit of control and in case you want to put a total limit per user, there is more logic to create and we can talk about further in case it solve your need.

Regards
Jare Ramirez