froala / meteor-froala

Meteor bindings for the Froala WYSIWYG HTML Editor.
https://froala.com/wysiwyg-editor
MIT License
68 stars 19 forks source link

s3 bucket url issue #13

Closed sungchi closed 9 years ago

sungchi commented 9 years ago

There are two types url. However, the second method results in an error

http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html

In a path-style URL, the endpoint you use must match the region in which the bucket resides. For example, if your bucket is in the South America (Sao Paulo) region, you must use the http://s3-sa-east-1.amazonaws.com/bucket endpoint. If your bucket is in the US Standard region, you must use the http://s3.amazonaws.com/bucket endpoint.

stefanneculai commented 9 years ago

The editor is using virtual-hosted–style. The editor is making the request to https://bucket-name.region.amazonaws.com.

The request might fail if you have dot inside your bucket name.