在 firebase 中存储图像,POST 404
Store images in firebase, POST 404
我的构造函数,
constructor(private storage: AngularFireStorage, public service: LecturersService, private firestore: AngularFirestore, private toastr: ToastrService) {
}
我通过
上传图片
this.storage.upload('lecturer-list',this.selectedFile);
然后我得到
zone-evergreen.js:2952 POST https://firebasestorage.googleapis.com/v0/b/gdis-9f4df.appspot.com/o?name=lecturer-list 403
我该如何解决这个问题?
只是一个小错误
我们必须设置权限,
allow read, write;
在存储规则中。
您必须在 firebase 界面中激活存储,然后允许读取、写入
我的构造函数,
constructor(private storage: AngularFireStorage, public service: LecturersService, private firestore: AngularFirestore, private toastr: ToastrService) {
}
我通过
上传图片this.storage.upload('lecturer-list',this.selectedFile);
然后我得到
zone-evergreen.js:2952 POST https://firebasestorage.googleapis.com/v0/b/gdis-9f4df.appspot.com/o?name=lecturer-list 403
我该如何解决这个问题?
只是一个小错误
我们必须设置权限,
allow read, write;
在存储规则中。
您必须在 firebase 界面中激活存储,然后允许读取、写入