I’m trying to upload some files via a php script, however I’m running into a curl error and I’m not sure where I’m doing it wrong. This is the code I’m trying to run:
$Connection->create_object('mysqlbackups', $folder.'.tar.gz', array(
'fileUpload' => $folder.'.tar.gz'
));
And this is the error I get. What should I be doing differently?
Fatal error: Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #16; cURL error: select/poll returned error (cURL error code 55). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in /home/zastica/mysqldump/AWSSDKforPHP/lib/requestcore/requestcore.class.php:843
[hr]
Error 55 is a very helpful "CURLE_SEND_ERROR (55) Failed sending network data. "
[hr]
And this seems to work just fine:
$response = $Connection->create_object('mysqlbackups', $folder.'.tar.gz', array(
'body' => file_get_contents($folder.'.tar.gz')
));