js this
woes
This commit is contained in:
parent
80831c2d85
commit
a4581e7a7c
@ -8,7 +8,6 @@ class AzureUploader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async upload(file, objectName) {
|
async upload(file, objectName) {
|
||||||
console.log(this)
|
|
||||||
const blobService = Azure.createBlobServiceWithSas(
|
const blobService = Azure.createBlobServiceWithSas(
|
||||||
`https://${this.accountName}.blob.core.windows.net`,
|
`https://${this.accountName}.blob.core.windows.net`,
|
||||||
this.sasToken
|
this.sasToken
|
||||||
@ -24,7 +23,7 @@ class AzureUploader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
fileReader.addEventListener('load', function(f) {
|
fileReader.addEventListener('load', f => {
|
||||||
blobService.createBlockBlobFromText(
|
blobService.createBlockBlobFromText(
|
||||||
this.containerName,
|
this.containerName,
|
||||||
`${objectName}.pdf`,
|
`${objectName}.pdf`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user