使用 Firebase 云存储的权限已被拒绝。这个操作无法完成。获取 downloadURL 时,使用 firebase
Permission to use Firebase Cloud Storage has been refused. This operation could not be completed. When fetching a downloadURL, use 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/.*');
}
}
}
我有这样的代码可以正确地将图片发布到我的在线存储桶。
我想使用另一个函数检索图片的 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/.*');
}
}
}