Code Monkey home page Code Monkey logo

Comments (5)

tpyo avatar tpyo commented on July 24, 2024

Could you provide any more info?

from amazon-s3-php-class.

WayneBrummer avatar WayneBrummer commented on July 24, 2024

Yea sure the full error from xdebug is:
10.0010179712{main}( )..\upload.php_:020.42402655704S3::putObject( $input
= 'F:\Applications\EasyPHP-DevServer-13.1VC9\binaries\tmp\php6C9B.tmp',
$bucket
= '/test2/file_docs/16 Ceretto /properties/1671', $uri
= '316972_10151207482361487_321088931_n.jpg', $acl
='public-read', $metaHeaders = ???, $requestHeaders = ???, $storageClass
= ??? )..\upload.php
:_26730.99612661664S3::_triggerError( $message
= 'S3::putObject(): [505] Unexpected HTTP status', $file
= 'F:\Applications\SkyDrive\Websites_agent\core\functions\S3.php',
$line
= 533, $code = ???
)..\S3.php
:_53340.99612661784trigger_errorhttp://www.php.net/function.trigger-error
( 'S3::putObject():
[505] Unexpected HTTP status', 512 )

from amazon-s3-php-class.

WayneBrummer avatar WayneBrummer commented on July 24, 2024

Now I am getting a:

I am using your example of:
S3::putObject(S3::inputFile($file, false), $bucketName, $uploadName, S3::ACL_PUBLIC_READ)

S3::putObject(): [56] Recv failure: Connection was reset

from amazon-s3-php-class.

tpyo avatar tpyo commented on July 24, 2024

Sorry, I can't tell what your code is doing from your xdebug output.

Unexpected HTTP status errors are usually due to invalid putObject() values. Connection reset errors are network related.

I'm going to close this, but if you can reproduce the error please open a new ticket.

from amazon-s3-php-class.

WayneBrummer avatar WayneBrummer commented on July 24, 2024

I found the solution. the url just needed encoding since the url had a space.

from amazon-s3-php-class.

Related Issues (20)

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.