Azure blob storage cancel upload
Alexander Angelo
6
Reputation points
Hi,
I am using Aurelia client and uploading files to Azure Blob Storage.
azblob.uploadBrowserDataToBlockBlob(azblob.Aborter.none,
file.fileData,
blockBlobURL, {
blockSize: blockSize,
progress: function (ev) {
file.uploadPercent = Math.round((ev.loadedBytes * 100) / file.fileData.size);
file.uploadMessage = file.uploadPercent + "%";
file.uploadPercentStyle = `width: ${file.uploadPercent}%`;
}
}
Now, I want to be able to abort uploading when the user presses a cancel button. Is there a way I can cancel/abort the upload?
thanks
Angelo
Sign in to answer