使用Firebase云存储的权限被拒绝.此操作无法完成.当获取downloadURL时,使用firebase



我有这样一个代码,可以正确地将图片发布到我的在线存储桶中。

我想使用另一个函数检索图片的URL,以便我可以在我的页面上显示它。

"error": {
"code": 403,
"message": "Permission denied. Could not perform this operation"

}

兄弟,这对我来说太棒了

service firebase.storage {
match /b/{bucket}/o {
match /images/{imageId} {
// Only allow uploads of any image file that's less than 5MB
allow write: if request.resource.size < 5 * 1024 * 1024
&& request.resource.contentType.matches('image/.*');
}
}
}

最新更新