How to let discourse load images from local after you've downloaded them back to server


Continuing the discussion from Amazon S3 Bucket:
i’ve ran this command

./launcher enter app
rails c
rake uploads:migrate_from_s3

but i cant get images to load from local, i’ve even rebaked post and did a rebuild

(Bhanu Sharma) #2

I’m stuck with the same issue!

(Vinoth Kannan) #3

Can I have any example post raw text which having amazon s3 upload?


do you mean a topic link?
or direct url from an aws s3 upload

(Vinoth Kannan) #5

I need post raw (not html) to check the markdown text of s3 uploads.


do you mean this


Rebake did not actually revert the URLs back to local
(Vinoth Kannan) #7

I can confirm the rake task is currently not effective since it expects S3 upload URLs in the format. So the rake task code needs to be modified. Else you may need to copy the uploads manually.

Software won't display uploaded avatar?

the uploads are on server, rake task worked but, pics that were uploaded to s3, still loads from s3, i need to get them to load from server, i had removed s3 from settings and images upload directly to local but i need to get old s3 images to load from server instead

(Vinoth Kannan) #9

Ah, so the above upload url is newly generated one after you run that rake task. Sorry for the confusion.


no, its the one from s3

this is discourse’s url
this is s3’s

Software won't display uploaded avatar?

ant eta on fix? i dont want to kill s3 instance as yet, but if i keep it up long it’ll cost more money