Rails 文件附件和 jruby 应该使用什么?
通常我会使用 Carrierwave,但他们并不正式支持 jruby,而且我一直遇到错误,可能与此相关。 (https://github.com/jnicklas/rierwave/issues/620,< a href="https://stackoverflow.com/questions/9236143/image-corruption-on-upload-to-s3-product-only-carrierwave-engineyard">上传到时图像损坏s3,仅生产。(Carrierwave,engineyard))
其他人在这里取得了成功吗?
我正在考虑尝试回形针,但看起来这可能也不完美 - https: //github.com/thoughtbot/paperclip/issues/100
Normally I'd use carrierwave, but they do not officially support jruby, and I've been running in to bugs, possibly related. (https://github.com/jnicklas/carrierwave/issues/620, Image corruption on upload to s3, production only. (carrierwave, engineyard))
Have others had success here?
I'm considering trying out paperclip, but it looks like that may not be perfect either-- https://github.com/thoughtbot/paperclip/issues/100
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试dragonfly,它是一个非常好的管理文件附件的库。
Try dragonfly it's a really great library to manage you file attachment.
看看这个指南,这是蛋糕
http://webtempest.com/how-to- allowed-image-uploads-in-rails-on-heroku/
它使用回形针和 amazon web s3 gems
check out this guide, it's cake
http://webtempest.com/how-to-allow-image-uploads-in-rails-on-heroku/
It uses paperclip and amazon web s3 gems