PDFs not showing in FlutterFlow? Update your Firebase permissions like this…

Share This Post

After adding an Upload File widget inside FlutterFlow, retrieving the files to view can sometimes returns a blank result.
For example, I ran into this when creating a ‘preview’ of a just-uploaded file. Although the file was uploading successfully to Firebase storage, I was unable to view the file inside the app.

This is a permissions error inside Firebase Storage.

To make files visible to authenticated users, go to the ‘Rules’ tab in Firebase Storage, and replace with the following:

				
					rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}
				
			

More To Explore

How to Setup Firebase with FlutterFlow (2023)

There are a few FlutterFlow specific steps you’ll need when activating a new Firebase/Firestore project. Go to Project Settings / Users & Permissions Add New

Let's Talk

You can also email me at hello@depalma.co