Is there a best directory to place image uploads on heroku?

后端 未结 2 1092
孤城傲影
孤城傲影 2021-01-16 22:45

I\'m using carrierwave and I want to change the directory where images are stored.

Right now the image URL is /uploads/modelname/image/51/nameoffile.jpg

the

2条回答
  •  执念已碎
    2021-01-16 23:25

    Heroku doesn't allow uploads to their servers. You need to use another storage medium, like Amazon's S3.

    I'm actually using Parse's (www.parse.com) API to store images on their solution. But it depends how you need access to your images.

提交回复
热议问题