0

I have firebase storage files stored as following: PROJECT/location-images/{image}

I also have data in firebase realtime-database stored as following: PROJECT/users/{UID}/image (value is a string)

The question is.. Can I use firebase storage rules to find the user with a corresponding image and only then allow him to "delete" it.

One possible solution that I know of is to use customMetadata, but customMetadata can not be added directly to existing images. That means I would have to use my app to add every single image in storage one by one.

MoreeZ
  • 118
  • 6
  • There is no connection between the security rules of Cloud Storage for Firebase and the data in the Firebase Realtime Database. You will need to include all the information that is necessary either in the rules directly, or in the security token of the user making the request. – Frank van Puffelen Aug 16 '19 at 23:32

1 Answers1

0

There is no connection between the security rules of Cloud Storage for Firebase and the data in the Firebase Realtime Database. You will need to include all the information that is necessary either in the rules directly, or in the security token of the user making the request.

Also see:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807