yerowyn
yerowyn

Reputation: 3

How to display images from S3/Paperclip/Heroku?

I'm setting up configurations for s3, but images doesn't display.

heroku site

heroku log - doesn't show me any error about it.

github repo

I don't know where is problem.

Upvotes: 0

Views: 35

Answers (1)

spickermann
spickermann

Reputation: 107107

You build image URLs in your application looking like this:

https://s3.amazonaws.com/instapin-rails/photos/images/000/000/002/medium/38847662_1905162256447081_1160841501610082304_n.jpg

But your Amazon configuration requires this format:

http://instapin-rails.s3.amazonaws.com/photos/images/000/000/002/medium/38847662_1905162256447081_1160841501610082304_n.jpg

Just change the prefix (host and the first path segment) and it should work.

Upvotes: 1

Related Questions