Note that there are some explanatory texts on larger screens.

plurals
  1. POAWS S3 batch upload from localhost php error
    primarykey
    data
    text
    <p>I am trying to <strong>batch/bulk</strong> upload from localhost (xampp) to my <code>S3</code> bucket.<br/> It seems to work for about 6 items then i get an error message:<br/><br/> The cURL error says <code>Failed sending network data.</code> from <a href="http://curl.haxx.se/libcurl/c/libcurl-errors.html" rel="nofollow">http://curl.haxx.se/libcurl/c/libcurl-errors.html</a></p> <pre><code>Fatal error: Uncaught exception 'cURL_Multi_Exception' with message 'cURL resource: Resource id #34; cURL error: SSL_write() returned SYSCALL, errno = 0 (cURL error code 55). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in D:\xampp\htdocs\path\to\my\files\sdk-1.5.14\lib\requestcore\requestcore.class.php on line 902 </code></pre> <p>and</p> <pre><code>cURL_Multi_Exception: cURL resource: Resource id #34; cURL error: SSL_write() returned SYSCALL, errno = 0 (cURL error code 55). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes. in D:\xampp\htdocs\path\to\my\files\sdk-1.5.14\lib\requestcore\requestcore.class.php on line 902 </code></pre> <p>heres my php. It gets a list of images from a directory and from that loop I wish to batch upload those items to <code>S3</code>.</p> <pre><code>require_once('sdk-1.5.14/sdk.class.php'); $s3 = new AmazonS3(); //$s3-&gt;disable_ssl_verification(); //this didnt fix it $folder = "./../"; $handle = opendir($folder); # Making an array of files in a directory to upload to S3 while ($file = readdir($handle)) { $files[] = $file; } closedir($handle); foreach ($files as $file) { $path_parts = pathinfo($file); if(isset($path_parts['extension']) &amp;&amp; $path_parts['extension'] != '') { // local path $fileTempName = "D:/xampp/htdocs/path/to/my/files/"; //batch $response = $s3-&gt;batch()-&gt;create_object('bucketname', "tempdirectory/" . $file, array( 'fileUpload' =&gt; fopen($fileTempName . $file, 'r'), 'acl' =&gt; AmazonS3::ACL_PUBLIC )); } } $s3-&gt;batch()-&gt;send(); </code></pre> <p><strong>update:</strong> after making changes to <code>congig.inc.php</code> i am now getting error messages:<br/><br/> <code>Fatal error: Uncaught exception 'cURL_Multi_Exception' with message 'cURL resource: Resource id #149; cURL error: Failed connect to mybucket.s3.amazonaws.com:443; No error (cURL error code 7). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in D:\xampp\htdocs\sdk-1.5.14\lib\requestcore\requestcore.class.php on line 902</code> <br/> <br/> <code>cURL_Multi_Exception: cURL resource: Resource id #149; cURL error: Failed connect to prayerbucket.s3.amazonaws.com:443; No error (cURL error code 7). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes. in D:\xampp\htdocs\sdk-1.5.14\lib\requestcore\requestcore.class.php on line 902</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload