Setting up a CNAME for an S3 bucket using Amazon Route 53

后端 未结 3 1698
时光取名叫无心
时光取名叫无心 2021-02-06 13:31

I need the following url

http://liangpai.s3.amazonaws.com/uploadImage/shareImage/2012-10/506dc1ef71dcf.png

showing as:

http://imgs.liangpai.me/uploadImag

3条回答
  •  星月不相逢
    2021-02-06 14:24

    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)

提交回复
热议问题