ローカルマシンでペーパークリップを使用してRubyonRailsに写真をアップロードしようとすると、完全に機能します。
Linux( CentOS 5.2)サーバーでApacheとPhusionPassengerを使用してPaperclipを使用してRubyon Railsに写真をアップロードしようとすると、次のようになります。
2 errors prohibited this user from being saved
There were problems with the following fields:
- Avatar /tmp/stream20091026-21120-1qdbnul-0 is not recognized by the 'identify' command.
- Avatar /tmp/stream20091026-21120-1qdbnul-0 is not recognized by the 'identify' command.
追加してみました:
Paperclip.options[:command_path] = "/usr/local/bin"
Production.rbに追加しましたが、違いはありませんでした。
ログファイルで、次のエラーが発生します。
パラメータ:{"commit" => "Upload"、 "action" => "update"、 "_ method" => "put"、 "authenticity_token" => "419410afc22737cd2f6b6096a95327db76a48ba9"、 "controller" => "users"、 "user "=> {" avatar "=>#}}[ペーパークリップ]添付ファイルを保存しています。[ペーパークリップ]処理中にエラーを受け取りました:
/ tmp/stream20091026-20752-1g568yk-0は「identify」コマンドで認識されません。