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 Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,105 questions
{count} votes

Your answer

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