如何将Block中的Blob直接上传到Azure?

时间:2016-04-04 16:03:06

标签: javascript azure azure-storage-blobs

我目前正在使用与Azure共享访问签名配对的Javascript将文件直接上传到Azure。只要我将文件大小保持在64MB以下就没有问题,因为该文件被发送为1个blob。但是,当我超过这个大小时,我得到一个错误,说文件大小太大。我知道通过将blob切割成块来解决这个问题,但是我不知道如何使用我当前的设置来做到这一点。有没有办法让我通过使用Javascript和共享访问签名将其切割成64MB的块来上传200MB的blob?

1 个答案:

答案 0 :(得分:0)

With help from Gaurav Mantri and the link he posted, I was able to make the necessary additions to chunk a 100MB video file and send it up directly to Azure from Javascript. A side note to go with the information provided in the link, when you decide to cut a blob into blocks and send up to Azure it is important to note that the max size a block can be is 4MB. Once I figured that out my upload worked flawlessly.