Please can i know what the maximum file size to upload to the azure storage blob using uploadfile api.
Block Blobs originally had a maximum size of 200GB (with 4MB block size), and now may be up to 4.77TB (with new 100MB block size). Maximum number of blocks per blob: 50,000.
Take a look at operations on Block Blobs for more information about the REST API calls (including Put Block
and Put Block List
)
Update: as of December 2016 the maximum size of a Block Blob has increased to roughly 4.75TB (50,000 x 100MB blocks).
Source: https://azure.microsoft.com/en-gb/blog/general-availability-larger-block-blobs-in-azure-storage/
It basically depends on what type of blob you are using. Understanding Block Blobs and Page Blobs explains everything in detail.
If you are using block blobs (UploadFile API):
If you are writing a block blob that is no more than 64 MB in size, you can upload it in its entirety with a single write operation. (Storage clients default to 32 MB, settable using the SingleBlobUploadThresholdInBytes property.)
Over time, the maximum upload size has increased. According to this MS document from 2021, the Maximum blob size (via Put Block List) is approximately 190.7 TiB (4000 MiB X 50,000 blocks) for Version 2019-12-12 and later. The referenced doc gives size limits for other versions as well.
© 2022 - 2024 — McMap. All rights reserved.
CloudBlob.UploadFile
is from the old 1.7 lib and is deprecated. – Swithbert