I'm learning about Firebase auth and storage in a web app. My idea asks users to login via Firebase and then upload an image.
I can see that this is possible from firebase auth and storage. However, I would like to put limits on the file count and file-size they can upload.
Is it possible to control uploads within the firebase console? After reviewing the JavaScript examples, I see how I can put files in, and I can imagine writing code which would query firebase for a user's upload count, and then limit on the client side, but of course, this is a completely insecure method.
If I hosted this as a single page app on, say, GitHub pages, I am wondering if I could set these limits without involving a server. Or, do I need to proxy my uploads through a server to make sure I never allow users to upload more than I intend them to?
If you have documentation on this type of idea, I'm very happy to get it, on top of any advice in this thread.
Thanks in advance.
Chris