Angular2 Firebase文件上传

时间:2017-01-07 11:02:03

标签: angular file-upload firebase firebase-storage angularfire2

是否可以使用ng2-file-upload(https://github.com/valor-software/ng2-file-upload)将文件上传到firebase?我尝试将uploadUrl设置为

this.uploaderUrl = firebase.storage().ref();
this.uploaderUrl.child('images').child(this.image.title);

public uploader: FileUploader = new FileUploader({
   url: this.uploaderUrl,
   authToken: this.authService.authState.uid
});

但是这没有按预期工作。

0 个答案:

没有答案