JeffPritchard
unread,Nov 1, 2009, 10:24:02 PM11/1/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paperclip Plugin
I'm making a very simple use of paperclip very much like the
tutorials. Nothing complex.
Attaching a file works fine if I attach a gif image. Anything else
(jpeg, png, tiff) and I get that dreaded "...is not recognized by the
'identify' command" error.
Since it is working with .gif files, I don't think this is the thing
with it not finding Magick. I had that problem originally and got
past it with the googling results I found here and elsewhere and had
it working with .gif...but then realized it wasn't working with other
file types.
I figure this looks like a problem with the "multipart" thing, but
that looks right, and put the expected:
enctype="multipart/form-data"
in the form tag.
The params that are provided to the "create" method look like this
when I do a working gif file:
"image"=>{"name"=>"test 3",
"photo"=>#<ActionController::UploadedStringIO:0x23db2cc>}
and like this with any kind of other image file:
"image"=>{"name"=>"misty", "photo"=>#<File:/var/folders/SD/
SDx8I2aFFImM18OrHU-e8U+++TI/-Tmp-/CGI.5291.2>}
This problem is the same on both my Mac (leopard) dev machine and on
my deployed setup on redhat. I'm using Rails 2.1.0. Paperclip 2.3.1
thanks for any help or ideas,
jp