I have the next code to get URL from Amazon, but I need that URL looks something like
https://vis3dev.s3.amazonaws.com/359952_1550525274.mp4
and not
func GetFileLink(svc *session.Session) error {
req, _ := s3.New(svc).GetObjectRequest(&s3.GetObjectInput{
Bucket: aws.String(AwsBucket),
Key: aws.String(NameFile + ".mp4"),
})
url, err := req.Presign(15 * time.Minute)
if err != nil {
fmt.Print(err)
}
fmt.Println(url)
return err
}
acl := "public-read"
I fixed it changing the upload file adding ACL: aws.String(acl),