Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upload files via cloudfront distribution

how to upload files directly to cloudfront distribution ?

now I use the putobject method in the s3 class in the javascript sdk

According to documentation we can upload to the distribution directly http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AddingObjects.html

when I send the put request to distributionname.cloudfront.net It says 403 forbidden although I enabled the CORS configuration in s3

is there any similar method to s3.putobject for uploading to the cloudfront directly ?

or should I keep sending to the s3 origin of distribution buketname.s3.amazonaws.com/?

like image 388
Yasser Avatar asked Jan 10 '23 11:01

Yasser


1 Answers

Actually AWS released a feature later called as "Amazon S3 Transfer Acceleration" to Transfer Acceleration takes advantage of Amazon CloudFront’s globally distributed edge locations

http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html

like image 140
Yasser Avatar answered Jan 18 '23 13:01

Yasser