Azure blob storage cancel upload

Alexander Angelo 6 Reputation points
2021-06-16T04:40:52.823+00:00

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

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.