Storage Rules
Like Firestore security rules, Firebase Storage security rules control who can access files uploaded by your users in your application.
For example, by setting the storage rules, you can allow only authenticated users (e.g., via Email, Google Sign-in, etc.) to upload or send images.
If you are new to storage rules, you may want to check out this overview about Getting Started With Storage Rules.
Deploying storage rules
To deploy the storage rules:
-
First, make sure Firebase Storage is enabled or configured in your project by visiting the Firebase console and viewing the Storage tab.
-
Return to FlutterFlow, navigate to Settings & Integrations > Project Setup > Firebase.
-
Scroll down to the Firebase Storage section.
-
To set the storage rules outside of the FlutterFlow (i.e., from the Firebase Console), enable the Manage Outside of FlutterFlow.
-
To only allow accessing the images, videos, files, etc., to the users who uploaded it, enable Make Users Uploads Private.
-
Click the Deploy button.
-
A pop-up will open. Click Yes to continue and click Deploy Now.
Learn more about Firebase Storage Rules here.