Storage used size?

How do you know how much storage is used by a user? Is there a way to use bubble storage and have a condition “if Storage used by the current user > 5gb”?

Also, is AWS a better option to start a project? Or use bubble then transfer to AWS later on when the app progressed?

Help?

Hello

You do this yourself by using file uploader’s filesize & add this to your user/datatype/field=filesize(number). Note that this will be in bytes. 1000000B = 1MB

here you will do a search for X user’s datatype/filesize(number)(calculated sum).

Bubble is using AWS service to host your files. If you mean start with your own bucket from AWS and use the plugin from zeroqode then it really doesnt matter which order you perform this in. The choice of AWS is only for the file uploader, your data is all text urls.

When I start a project with bubble I use a uploadwhore account for icons, logos etc and paste the urls into my new app, so it has 0% storage used, then later upgrade if needed.

1 Like

I noticed that when I do this, the file size recorded doesn’t match the file size used in bubble storage. (the actual size before being compressed is the one placed in the file size)

https://www.loom.com/share/0c2bfa6de62f45198204b453ac5857ba .
Youre welcome

Thank you. That’s how I did it. But in Picture Uploader (not file uploader), when the “limit file size before upload” is checked, the reduced file size is not reflecting on the uploader’s file size.

I think the uploader, gets the file size before upload even when “limit file size before upload” is checked? any workaround?

There is no option to limit the file size before upload with bubble picture or file uploaders.


Limit image size before upload

By default, an image uploads without resizing. If the image is large, this may lead to a slower upload. If an image is larger than 800 x 600 pixels, check this box to resize the image to these dimensions.
Introduction - Bubble Docs


This was not what you asked in your original questions.

How do you know how much storage is used by a user? Is there a way to use bubble storage and have a condition “if Storage used by the current user > 5gb”?

Also, is AWS a better option to start a project? Or use bubble then transfer to AWS later on when the app progressed


You could set a workflow to delete the file afterwards if the filesize takes the user over 5gb.