libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [libcloud] c-w commented on issue #1399: Upload large file to Azure Blobs
Date Fri, 03 Jan 2020 21:31:37 GMT
c-w commented on issue #1399: Upload large file to Azure Blobs
   The maximum file size currently supported by the Azure Storage driver is 256 MB. Uploading
larger file sizes will require a code change in libcloud.
   The Azure Storage driver's implementation of [upload_object_via_stream](
delegates to [_put_object](
which calls through to the generic [_upload_object](
which does a single PUT request to the storage backend. Given that [we're using Azure Storage
API version 2016-05-31](,
according to the [Put Blob documentation](,
the maximum file size that can be uploaded in one Put Blob request is 256 MB. As such, to
support uploading files larger than 256 MB, the Azure Storage driver would have to implement
chunked blob upload via [Put Block](
and [Put Block List](
It looks like the Azure Storage driver used to implement the chunked blob upload flow (e.g.
see [24f34c9](
However, since [6e0040d](
the driver doesn't have support for chunked blob upload anymore.
   I encountered this limitation in several other projects (e.g.
so I will try to find some time and work on a fix.
   If you require access to Azure Storage via libcloud for uploading large files right now
before the fix mentioned above is implemented, I would suggest to try the following: The [libcloud
S3 driver currently implements chunked upload](,
so you could try deploying [MinIO]( as a [gateway for Azure
Storage]( and using the libcloud S3
driver to talk to the MinIO frontend which in turn communicates efficiently with the Azure
Storage backend. For MinIO [947bc8c](
and later, this approach should work for all types of cloud-based Azure Storage accounts (e.g.
Storage, StorageV2, BlobStorage) as well as Azurite and Azure IoT Edge Storage. Once chunked
blob upload is fixed in libcloud, you should be able to remove the MinIO indirection and switch
to libcloud's Azure Storage driver with no additional code changes required.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message