Store image in database using rails paperclip plugin

前端 未结 4 851
南旧
南旧 2021-01-05 15:14

I have an application that uses the Paperclip plugin for image upload. Now that app should get deployed to an host(heroku) which has a read-only file system. Can I somehow t

4条回答
  •  感情败类
    2021-01-05 15:35

    Rethink what you're doing. Storing images in the db is generally a bad idea. For more info, see here.

    ry is right to point you towards S3. If nothing else, think of the cost: 500 MB of database space on Heroku is $50/month. On S3, it'll be 15 cents.

提交回复
热议问题