I need the following url
http://liangpai.s3.amazonaws.com/uploadImage/shareImage/2012-10/506dc1ef71dcf.png
showing as:
http://imgs.liangpai.me/uploadImag
Try this
Using your own bucket CNAME:
echo S3::getAuthenticatedURL("s3bucket.mydomain.com", $uri, 3600, true);
but you putobject file check for read for Everyone premisssion type:
S3::ACL_PUBLIC_READ
$s3->putObjectFile($tmp, $bucketname , $path.$filename, S3::ACL_PUBLIC_READ)