rails paperclip and passenger `is not recognized by the 'identify' command`

前端 未结 14 1063
终归单人心
终归单人心 2020-11-28 06:37

When I upload a photo, my model fails validation, err well even without any validations I\'m returned this error:

/tmp/stream20100103-13830-ywmerx-0 is not r         


        
14条回答
  •  孤街浪徒
    2020-11-28 07:16

    Usually it helps to specify the path to the identify command with..

    Paperclip.options[:command_path] = "/your/path/to/identify"
    

    ..as the others mentioned. But the problem can also occur if there is a version mismatch, I recently updated the Ruby-on-Rails Version of an application (to Rails 3.1.10), but forgot to update the paperclip gem. After I updated the paperclip version to 2.8.0 it worked again.

提交回复
热议问题