从移动应用程序上传图片时出现以下错误
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20120504-12074-1wgc6pp.png is not recognized by the 'identify' command.>
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream20120504-12074-1wgc6pp.png is not recognized by the 'identify' command.>
在我的config / environments / development.rb
中Paperclip.options [:command_path] =“/ usr / local / bin”
主要的问题是,当我尝试从网络上传图片时它工作正常。但是当我尝试从移动应用程序(android)上传图片时,它给出了上述错误。我正在从移动应用程序发送.json请求。
任何帮助都将受到高度赞赏!!!!! 谢谢..