tag:blogger.com,1999:blog-4129875579655863057.post6975970369285784162..comments2022-11-05T01:35:14.024-07:00Comments on Java Questions and Answers: Upload external file to AWS S3 bucket using PHP SDKjavatubehttp://www.blogger.com/profile/15526548399393457583noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4129875579655863057.post-54671206198349517172013-08-03T12:21:35.741-07:002013-08-03T12:21:35.741-07:00Try this below it works without the 'The strea...Try this below it works without the 'The stream size for the streaming upload cannot be determined' error.<br /><br />$this->s3->create_object($bucket, $filename.'.jpg', array('body' => file_get_contents($image_url), 'acl' => AmazonS3::ACL_PUBLIC, 'contentType' => 'image/jpeg'));Anonymousnoreply@blogger.com