b2-sdk-php
b2-sdk-php copied to clipboard
Support B2 Large Files
I'd like to see support for Large Files. You can reference https://www.backblaze.com/b2/docs/large_files.html for more info. I think this could widen the use case for this SDK quite a bit as the world of media expands and gets larger.
Would just like to second this - I've just had Laravel throw the error below which seems to be because the file is too big?
[2017-01-24 16:18:12] local.ERROR: ChrisWhite\B2\Exceptions\B2Exception: Received error from B2: Not enough members for write of <redacted>: class java.net.SocketTimeoutException - Read timed out; class java.net.SocketTimeoutException - Read timed out in /var/www/vendor/cwhite92/b2-sdk-php/src/ErrorHandler.php:36
Just to add - the file was 4.3GB
There's a pull request that implements this feature: https://github.com/cwhite92/b2-sdk-php/pull/15
Unfortunately it's not merged yet. But you can use my forked repo with the large file support. Just edit composer.json and add:
"repositories": [
{
"url": "https://github.com/przemekperon/b2-sdk-php",
"type": "vcs"
}
],