Skip to content

Instantly share code, notes, and snippets.

@darrenmothersele
Created December 19, 2018 18:35
Show Gist options
  • Save darrenmothersele/235ae503a81ef5c8c2f14282ad40385f to your computer and use it in GitHub Desktop.
Save darrenmothersele/235ae503a81ef5c8c2f14282ad40385f to your computer and use it in GitHub Desktop.
service firebase.storage {
match /b/{bucket}/o {
match /{userId}/{document=**} {
allow read: if request.auth.uid == userId;
allow write: if request.auth.uid == userId
&& request.auth.token.path == request.resource.name
&& request.auth.token.remaining >= request.resource.size;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment