Code Monkey home page Code Monkey logo

b2-sdk-php's People

Contributors

matslindh avatar miyurusankalpa avatar svenluijten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

b2-sdk-php's Issues

Hash for files not populated

For some reason the hash for the get list of files isn't populated. Instead it's explicitly set to null.
Please include it - it's just a few characters in client.php:

	$files[] = new File($file['fileId'], $file['fileName'], $file['contentSha1'], $file['size']);

Is it alive?

I see that this library is one of the most complete around, but I wonder if it is still alive/active, since I see some PRs that are there for many months and have not been approved yet.

Thanks in advance.

New release

Could you generate a new release with the changes that exists only in master? #9 is needed for the client to work.

Show error messages and error codes

Currently in ErrorHandler.php you only show the error message. This is bad because B2 unhelpfully very often leaves this field blank.
Include the error code too:

throw new $exceptionClass('Received error from B2: '.$responseJson['message'].' Code: '.$responseJson['code']);

Uploads are slow / request to benchmark uploads

Hi,

We have a platform where we usually upload up to 50 files from a user (images), where each upload can take up to 20 seconds for an image of 2MB. We have found that the uploads are extremely slow in regards of this. I was in contact with Backblaze B2-support and they suggested maybe it has something to do with HTTPS-verification or such things.

I will try to create an isolated test-case, but until then - do you have any thoughts on this? Is it a mis-configured server on our end; or are uploads typically these slow?

fileInfo custom headers

In the b2 upload doc there is a X-Bz-Info header present.

Up to 10 of these headers may be present. The * part of the header name is replace with the name of a custom field in the file information stored with the file, and the value is an arbitrary UTF-8 string, percent-encoded. The same info headers sent with the upload will be returned with the download. The header name is case insensitive.

I have seen that you use this to pass on the file last modified time, but I haven't seen any support for custom X-Bz-Info headers.

'X-Bz-Info-src_last_modified_millis' => $options['FileLastModified']

Error uploading

Hello,

Trying to upload like so

$file = $client->upload([
            'BucketId' => $bucketId,
            'BucketName' => $bucketName,
            'FileName' => $filename,
            'Body' => $file2Send
        ]);

results in this exception: Received error from B2: error reading uploaded data.

I tought it was on their end, so I emailed them but it seems that they're throwing the ball back at us, so I tought I should post it to see if it was of any help! :)

Did you ensure that you have a vaild upload token?

If the HTTP return status is anything other than 200, the caller must not upload to this URL again. Instead the caller MUST call b2_get_upload_url to get a new uploadUrl and new authorizationToken. The reason for this is that the individual storage pod you are uploading into may be full of data and thus will never accept any more data for now, or it has crashed, or has been placed into maintenance and will not accept data, etc. No matter what the reason, you must use b2_get_upload_url to get a new uploadUrl and new authorizationToken in order to retry the upload.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.