我正在尝试在ionic 3的天蓝色blob存储中上传文件。
这是我的代码,
updateFiles(files) {
this.currentFile = files[0]
}
upload() {
if (this.currentFile !== null) {
const baseUrl = this.blob.generateBlobUrl(Config, this.currentFile.name);
this.config = {
baseUrl: baseUrl,
blockSize: 1024 * 32,
sasToken: Config.sas,
file: this.currentFile,
complete: () => {
console.log('Transfer completed !')
},
error: (err) => {
console.log('Error:', err)
},
progress: (percent) => {
this.percent = percent
}
};
this.blob.upload(this.config)
}
我提到https://www.npmjs.com/package/angular-azure-blob-service,but没有得到