Skip to content Skip to sidebar Skip to footer

Firebase : Uploading Files Anonymously Without Authentication

Using the code below I can see files uploaded to my firebase storage account without authentication, but others fail to upload. UploadFileAsync upload_task; for(int i=0; i

Solution 1:

In order to use Cloud Storage for Firebase, you need to either:

  • Enable Firebase Authentication
  • Set your Security Rules to allow unauthenticated access

To enable auth, follow the instructions in the docs; otherwise, you can follow the security rules docs and set your rules to public access during development:

service firebase.storage {
  match /b/{bucket}/o {
    match /{allObjects=**} {
      // public read, write access!// don't use this in production!!!
      allow read, write;
    }
  }
}

Solution 2:

If you really want to acces your storage as a third party member without authentication

you can do this

1.goto the console 2.then go to the storage section 3. then switch over to rules tab in storage where you will find some read and write rules 4. make it read = true, write = true 5 save it.. it'll give you a warning because it's a bad practice 6. now anyone can access your storage without authentication

Post a Comment for "Firebase : Uploading Files Anonymously Without Authentication"