当我上传照片时,我的模型没有通过验证,即使没有任何验证,我也会收到以下错误:
/tmp/stream20100103-13830-ywmerx-0 is not recognized by the 'identify' command. and
/tmp/stream20100103-13830-ywmerx-0 is not recognized by the 'identify' command.
我相信这与ImageMagick无关,因为我已经从上传中删除了任何图像处理,而且我也try 过上传不同的mime类型,比如.txt文件等.
此外,我还发现了一些可能有效的方法.一篇博客文章声称,在我的环境中添加以下内容(在本例中是development.rb)
Paperclip.options[:command_path] = "/opt/local/bin"