Reply to Re: Upload to AWS S3

Re: Upload to AWS S3 new!
by Daniel, 10 years, 6 months ago
I try to upload to Amazone S3, with different "resize" Images.

Is there a way to uploaded direct?

For example:
// IMAGE CONVERTED
$newImg = $handle->Process(); 
if ($handle->processed) {
  $s3->putObjectFile(S3::inputFile($newImg), BUCKET_NAME, 
    $handle->file_dst_name, S3::ACL_PUBLIC_READ, array(), 
    array("Content-Type" => 'image/jpeg'));
}

and so on with the other resize options.

Is there a way to get the NEW (edited) $_FILES['file_img']['temp_name'] and to put this in $s3->putObjectFile() for each image?Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important