问题标签 [attachment-fu]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
imagemagick - phusion 乘客上的 attachment_fu rmagick
在 Passenger 上设置 rmagick 让我感到非常痛苦。我正在开发一个使用 imagemagick 具有图像处理功能的 Rails Web 应用程序。图像处理功能在使用 mongrel 的开发中 100% 工作,但是一旦我将它部署到使用 phusion 乘客的生产中,我就会收到错误
未初始化常量 Technoweenie::AttachmentFu::Processors::RMagickProcessor
我已经成功安装了以下 gem:
1.) rmagick (2.13.1) 2.) imagemagick
这是模型中的代码
has_attachment :content_type => :image,
ruby-on-rails - 在 rails 中使用 attachment_fu 上传文件
我的文件上传在 IE 上运行良好。
但它在 Firefox 上返回“406 不可接受”错误。
有什么解决办法吗?
ruby-on-rails - attachment_fu image resizing with s3 storage
I'm facing a problem right now, where in my company, we want to resize the thumbnail images we have on amazon s3 storage using attachment_fu, I've been investigating how to regenerate this thumbnails and had found some guidelines to do it, however all of them work with local storage.
I've found a way, that involves more or less downloading the image from S3 using RestClient, and then assigning each downloaded image to each photo instance as a new attachment, I don't know if this is the best way (slow, expensive?), I would like to know if someone out there have had the same situation, did you do more or less the same? or did you find a more elegant way to solve this issue?
Thanks in advance for any feedback.
ruby-on-rails - 使用附件_fu 上传文件
现在我将文件存储在我的应用程序的公共目录中。
我想将文件上传到特定路径,例如http://uploadfacility.com。
我有该特定路径的登录名和密码。
http://uploadfacility.com/test?username=test1&password=test1
我如何将文件存储到我的应用程序之外的特定路径。
我需要修改 :storage 或其他任何东西??
ruby-on-rails - 可以将列大小重命名为文件大小导致附件_fu 出现问题吗?
我可以用 attachment_fu 重命名列吗?
我使用 oracle 作为我的数据库,大小是 oracle 中的关键字。所以我不想创建一个大小名称的列。那么在使用 attachment_fu 时创建一个具有文件大小而不是大小的列可以吗?
heroku - Rails:在 Heroku 上安装 attachement_fu 时遇到问题
我正在尝试在 heroku 上部署一个应用程序。我的麻烦是安装 hattachement_fu 插件。
我运行以下命令将其直接安装在服务器上。
我收到以下消息:
所以安装插件的接缝但上面出现了问题......但在我的日志中我继续得到:
就像插件不存在一样。
关于发生了什么的任何想法?
ruby-on-rails - 在 Rails 3 中进行 attachment_fu 测试
我正在尝试使用 attachment_fu 为工作文件上传功能编写规范。但是,作者提供的用于测试的示例代码需要我要求action_controller/test_process
才能访问ActionController::UploadedStringIO
类。我以前在 rails 2.x 中使用过这个,但对于 rails 3,它无法找到test_process
文件。
如何继续测试 rails 3 中的文件上传功能?
ruby-on-rails - 在 rails 中使用 attachement_fu 上传文件
我想知道如何使用 rails 中的 attachement_fu 插件上传文件(图片除外)。我使用 attachement_fu 成功上传了图片,但无法上传其他类型的文件。
ruby-on-rails - 验证附件 fu 中的图像尺寸
保存图像后,图像的高度和宽度会正确保存在模型中。我有一个要求,我需要在保存之前验证图像的尺寸。它必须具有完全相同的尺寸。但是当我尝试在保存之前访问高度或宽度时,它给了我零。
有什么办法可以做到这一点吗?
现在,我在保存后发出警告,图像不是所需的尺寸。但这还不够整洁。
ruby-on-rails - 附件_fu问题
我正在尝试在 jRuby-1.5.2 和 Rails 3 上使用 attachment_fu + image science。我遵循了 attachment_fu 文档。但是,当我从浏览器上传表单时,我在 validate_as_attachment 上收到一个错误,说大小不能为空。这就是日志所说的
大小不能为空白翻译缺失:en.activerecord.errors.messages.inclusion
当我修改插件以忘记大小检查或不添加 validate_as_attachment 检查时,会在 DB 表中创建一个条目,但不会传输实际文件。
谁能指导我,还有一个兼容 Rails3 的插件可用。
谢谢您的帮助