You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
When uploading large files to the blob-storage, I get the following error:
Fatal error: Uncaught exception 'WindowsAzure\Common\ServiceException' with message 'Fail:
Code: 400
Value: The specified blob or block content is invalid.
The issue is, that the string-length of the block-Id gets bigger when 1000 chunks are uploaded.
With a maximum chunk-size of 4MB this means, that no files bigger than 3996MB can be uploaded.
The problem can be solved by editing the WindowsAzure/Blob/BlobRestProxy.php.
In the function createBlockBlob() there is a line to set the block-Id:
When uploading large files to the blob-storage, I get the following error:
Fatal error: Uncaught exception 'WindowsAzure\Common\ServiceException' with message 'Fail:
Code: 400
Value: The specified blob or block content is invalid.
The issue is, that the string-length of the block-Id gets bigger when 1000 chunks are uploaded.
With a maximum chunk-size of 4MB this means, that no files bigger than 3996MB can be uploaded.
The problem can be solved by editing the WindowsAzure/Blob/BlobRestProxy.php.
In the function createBlockBlob() there is a line to set the block-Id:
$block->setBlockId(base64_encode(str_pad($counter++, '0', 6)));
Changing it to:
$block->setBlockId(base64_encode(str_pad($counter++, 6, '0', STR_PAD_LEFT)));
solved the problem for me.
The text was updated successfully, but these errors were encountered: