Skip to content

Instantly share code, notes, and snippets.

@cionman
Created December 3, 2017 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cionman/7dcb58e8e02b7c53ec373fcd81857da9 to your computer and use it in GitHub Desktop.
Save cionman/7dcb58e8e02b7c53ec373fcd81857da9 to your computer and use it in GitHub Desktop.
스토리지 변경 권한
service firebase.storage {
match /b/{bucket}/o {
match /{yyyyMMdd}/{roomId}/{userUid}/{file} {
allow read: if request.auth!=null;
allow write: if request.auth!=null
&& request.auth.uid == userUid
&& (request.resource.contentType.matches('image/.*') || file.matches(".*.zip"))
&& request.resource.size < 5 * 1024 * 1024;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment