2

从移动应用程序上传图像时出现以下错误

[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 请求。

任何帮助将不胜感激!!!!!!谢谢..

4

0 回答 0