1. 27
    Restrict File Uploading to Firebase Cloud Firestore with Cloud Storage Security Rules
    3m 32s

Restrict File Uploading to Firebase Cloud Firestore with Cloud Storage Security Rules

InstructorJorge Vergara

Share this video with your friends

Send Tweet

We want to secure our file storage so not just anyone can upload files to our Cloud Firestore.

We'll go through Cloud Storage Security rules to add rules and restrictions to our bucket server-side. You'll notice that the default rules for storage are the same as the database in that they are open to anyone for 30 days.

There are a few restrictions that we will implement: - Only allowing authenticated users to upload files. - Restrict the size of the files we want to upload. - Restrict the type of files we want to upload. (i.e: only accept images or pdfs)