b2-sdk-php icon indicating copy to clipboard operation
b2-sdk-php copied to clipboard

Support B2 Large Files

Open loganbest opened this issue 8 years ago • 2 comments

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.

loganbest avatar Jan 16 '17 22:01 loganbest

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

lukehebb avatar Jan 24 '17 16:01 lukehebb

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"
	}
],

przemekperon avatar Apr 25 '17 09:04 przemekperon