if (fileUpload !== null) {
const baseUrl = this.blob.generateBlobUrl(Config,'testBlobUpload');
this.config = {
baseUrl: baseUrl,
sasToken: Config.sas,
blockSize: 1024 * 64, // OPTIONAL, default value is 1024 * 32
file: fileUpload.nativeFile,
complete: () => {
console.log('Transfer completed !');
},
error: () => {
console.log('Error !');
},
progress: (percent) => {
//this.percent = percent;
}
};
this.blob.upload(this.config);
}
export const Config: UploadParams = {
sas:'?sv=2017-07-29&sr=b&sig=q80fVo0wp8SVmTcgae%2BjceUPfKjE3Eb2MYbkClm8EqQ%3D&st=2018-03-06T13%3A49%3A33Z&se=2018-11-01T13%3A49%3A33Z&sp=racw',
storageAccount: 'vldevstoragefuncapp.blob.core.windows.net/vl2songs',
containerName: 'vl2songs'
//?sv=2017-07-29&sr=b&sig=QXVl6BcV47WiOPbM8CeNhmGpC%2FNslyN7qnI%2BopLuXyg%3D&st=2018-03-06T11%3A46%3A49Z&se=2018-11-01T11%3A46%3A50Z&sp=rw
}
Using Angular5 for uploading media files on Azure blob using angular-azure-blob-service, I am facing issue with generating the 'sas' Token, If anyone Used help me, Thanks