Increasing file upload/transfer size

Matt Dorsey 151 Reputation points
2022-08-16T16:20:02.787+00:00

Hi, I want to increase the size of my file upload from the default (28mb?) to the max (100mb?). I've successfully done this locally, but it does not work on the remote server. The relevant code is below. Do I need to do something else for it to work on the remote server?

Thanks!
Matt

BlobUploadOptions options = new BlobUploadOptions  
                {  
                    TransferOptions = new StorageTransferOptions  
                    {  
                        // Set the maximum size of a transfer to 100MB.  
                        MaximumTransferSize = 104857600  
                    }  
                };  
  
                await blob.UploadAsync(myBlob, options);  
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,639 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 45,416 Reputation points Microsoft Employee
    2022-08-18T08:48:53.85+00:00

    @Matt Dorsey For better understanding : May I know what remote server are you referring? Can you please explain bit more on your issue?
    Do you get any error message while you are uploading? If so can you please share the screen shot?

    Maximum Block Size is 100 MB by design, There are different ways you can upload large files to Blob.

    Block blobs are optimized for uploading large amounts of data efficiently. Block blobs are composed of blocks, each of which is identified by a block ID. A block blob can include up to 50,000 blocks. Each block in a block blob can be a different size, up to the maximum size permitted for the service version in use. To create or modify a block blob, write a set of blocks via the Put Block operation and then commit the blocks to a blob with the Put Block List operation.

    Blobs that are less than a certain size (determined by service version) can be uploaded in their entirety with a single write operation via Put Blob.

    215178-image.png

    Microsoft Azure Blob Storage provides a scalable service for storing your data. To ensure your application is as performant as possible, an understanding of how blob storage works is recommended. Knowledge of the limits for Azure blobs is important, to learn more about these limits visit: Scalability and performance targets for Blob storage.

    You can use Azure Storage Explorer, Azcopy, Power Shell, CLi or any programming language to upload large files

    Upload large amounts of random data in parallel to Azure storage

    How to upload big files to Azure Blob Storage (.NET Core)

    If you want to upload larger files to file share or blob storage, there is an Azure Storage Data Movement Library. It provides high-performance for uploading, downloading larger files. Please consider using this library for larger files.

    Choose an Azure solution for data transfer : This article provides an overview of some of the common Azure data transfer solutions. The article also links out to recommended options depending on the network bandwidth in your environment and the size of the data you intend to transfer.

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

    ----------

    Please do not forget to 215160-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments