I\'m trying to make it so that my script will show test.jpg in an Amazon S3 bucket through php. Here\'s what I have so far:
require_once(\'library/AWS/sdk.cl
Got it to work by echo'ing out the content-type header before echo'ing the $object body.
$objInfo = $s3->get_object_headers('my_bucket', 'test.jpg'); $obj = $s3->get_object('my_bucket', 'test.jpg'); header('Content-type: ' . $objInfo->header['_info']['content_type']); echo $obj->body;