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

前端 未结 14 992
终归单人心
终归单人心 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:02

    Just to say, you can also have this error message for what it means.

    In my case the file size was 0 bytes length because I forgot to flush it after writing it from a Zip, and passing this resource to Paperclip.

    It might be interesting to check that you can actually open the file with your preferred viewer before reading the other answer from this thread :)

提交回复
热议问题