gpt4 book ai didi

android - 公开 firebase 存储以在 android 上读写

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:49:02 25 4
gpt4 key购买 nike

我是 Firebase 存储的新手。谁能告诉我如何公开存储文件以供读写? firebase 提供的默认代码如下。我应该做出哪些改变?

service firebase.storage {
match /b/image-view-b1cf5.appspot.com/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}

最佳答案

仅供引用:如果您希望公开只读。

service firebase.storage {
match /b/image-view-b1cf5.appspot.com/o {
match /{allPaths=**} {
allow read;
allow write: if request.auth != null;
}
}
}

关于android - 公开 firebase 存储以在 android 上读写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38661958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com