【发布时间】:2019-01-17 08:43:38
【问题描述】:
我正在构建一个具有图像上传功能的网络应用程序。
我可以成功地将图像上传到名为“uploads”的 Firebase 存储文件夹 如何使用 *ngFor 在 HTML 上的“上传”文件夹中显示图像? 我正在使用 AngularFire2,Angular 6。
upload() {
const file = this.selectedFiles.item(0);
this.selectedFiles = undefined;
this.currentFileUpload = new FileUpload(file);
this.uploadService.pushFileToStorage(this.currentFileUpload, this.progress);
}
public saveFileData(fileUpload: FileUpload) {
this.db.list(`${this.basePath}/`).push(fileUpload);
}
【问题讨论】:
标签: angular firebase google-cloud-firestore angularfire2 angular6