here was my situation.
I was using paperclip to let user upload images. It did well and everything was okay. Then,I pushed it to heroku. For the momment, I can see all my images that was just upload by users. However, everytime make a new commit and push to heroku again, all of my previous images gone. It's seems like dont have the file anymore,cant load it.
So,here what i thought: Is it every time i pushed to the heroku server, the images file that was in local was uploaded to the heroku server?
I did research for my problem for it,and im not really understand what they actually said about heroku and i don't know is it is the same problem with me.
Heroku has a read-only filesystem. That means Paperclip cannot save uploaded files to any place within Heroku.
If you would like to be able to upload files to an application hosted on Heroku, then you must either store the files as binary blobs within your database or you must use a separate service to store the files. If you are looking for a separate service, Paperclip has built-in support for integrating with Amazon S3.
I found out that Amazon S3 need credit card to register,if i do not have credit card,then i cannot use their services??
Any detail advices and explaination is appreciated .Thanks you