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

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/?


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


Leave a Reply