I'm trying to upload an image from Flex to Rails. It uploads fine if I just want to upload the original but when I tried to add Thumbnail I got the following error:
[paperclip] identify '-format' '%wx%h' '/var/folders/RH/RHekFGKME9uDJbX4d4DG3E+++TI/-Tmp-/stream,23830,0.jpeg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /var/folders/RH/RHekFGKME9uDJbX4d4DG3E+++TI/-Tmp-/stream,23830,0.jpeg is not recognized by the 'identify' command.>
[paperclip] identify '-format' '%wx%h' '/var/folders/RH/RHekFGKME9uDJbX4d4DG3E+++TI/-Tmp-/stream,23830,0.jpeg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /var/folders/RH/RHekFGKME9uDJbX4d4DG3E+++TI/-Tmp-/stream,23830,0.jpeg is not recognized by the 'identify' command.>
and I noticed for some reason in the DB that when I upload a file from Flex to Rails it puts the photo_content_type is application/octet-stream shouldn't be jpeg or something? I thought that might be the problem.
Do you know how to resolve this?