How to Upload Large Files in Azure Blob in chunks from using Rest API JS?

Tanishka Arora 6 Reputation points
2021-09-01T06:25:05.87+00:00

Hi Team,

I have tried to upload large files from the LWC componet in chunks. But not found any call-back URL for uploading large files up to 4 GB to 10 GB from Rest API.

Can you please provide any links or documents for uploading large files in chunks from Rest API in Azure Blobs?

Thanks
Sumit Gupta
Mob.- ***********
Email- su*****ions.com

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,489 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,081 Reputation points Microsoft Employee
    2021-09-01T11:29:10.827+00:00

    @Tanishka Arora Welcome to Microsoft Q&A Forum, Thank you for posting your query here1

    This article gives samples and description on uploading files to azure using REST API: https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob
    Uploading Large Files in Windows Azure Blob Storage Using Shared Access Signature, HTML, and JavaScript

    Note: We also recommended to use Azcopy tool to upload files from on-premises or cloud (Use this command-line tool to easily copy data to and blobs from Azure Blobs, Blob Files, and Table storage Storage with optimal performance. ) AzCopy supports concurrency and parallelism, and the ability to resume copy operations when interrupted. It provides high-performance for uploading, downloading larger files. Please consider using this library for larger files.

    Storage limits: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#storage-limits

    There are few similar SO threads discussion here https://stackoverflow.com/questions/41829911/azure-rest-api-put-blob https://stackoverflow.com/questions/61481720/upload-video-in-chunks-azure-blob-storage which provide some idea on your scenario.
    https://stackoverflow.com/questions/61857337/how-to-upload-a-large-file-in-chunks-with-parallelism-in-azure-sdk-v12

    Additional information: How to upload and download blobs from Azure Blob Storage with JavaScript: https://learn.microsoft.com/en-gb/samples/azure-samples/azure-sdk-for-js-storage-blob-upload-download/upload-download-blobs-javascript/

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.