【发布时间】:2020-06-27 12:56:23
【问题描述】:
我试图将默认存储桶更改为 firestorage,我在互联网上查找了它,我在 firebase 页面上找到了以下代码:
bucket2 = firebase.app().storage(bucket);
但是,之前,我使用的是:
this.afStorage.upload(remakeNewPath, file);
进行上传。现在,如果我这样做:
this.bucket2.upload(remakeNewPath, file);
现在不行了,好像bucket2的值没有this.afStorage那样的属性upload。既然我使用了不同的方式,我将如何上传它?
【问题讨论】:
标签: javascript firebase google-cloud-storage angularfire2