Paperclipped on Heroku?

后端 未结 5 1206
青春惊慌失措
青春惊慌失措 2021-02-14 02:25

I was curious if anyone could get paperclipped working on Heroku without using S3. I\'m assuming Heroku is a read-only system, but there must be some way to save images there.

5条回答
  •  青春惊慌失措
    2021-02-14 02:56

    You can't write to Heroku's file system, so no, there is no way to save images the way you want. Your options are using a service like S3, or storing them in the database. I recommend using S3, because databases are not optimized for file storage. It's worth reading Heroku's documentation on file uploads.

提交回复
热议问题