I want to get the Object data without saving it to file and read it back.
Use this file:
$tmp = '/tmp/tmpfile';
S3::setAuth($app->config("app.s3_api_id"), $app->config("app.s3_api_key"));
S3::getObject($app->config("app.s3_bucket"), 'uri/to/file', $tmp);
$filecontent= file_get_contents($tmp);
unlink($tmp);
return $filecontent;
I want to get the Object data without saving it to file and read it back. Use this file: $tmp = '/tmp/tmpfile'; S3::setAuth($app->config("app.s3_api_id"), $app->config("app.s3_api_key")); S3::getObject($app->config("app.s3_bucket"), 'uri/to/file', $tmp); $filecontent= file_get_contents($tmp); unlink($tmp); return $filecontent;