> If anyone can explain how IE treats files differently, I would be a
> happy camper. Do I need to sanitize the filenames in IE?
What content types are being sent by I.E. for each image? In your
create action, debug to find out the value of
params[:friend][:raw_then_photo].content_type to check it is one of
the image types you've specified. If content-type is empty, you may
find it useful to apply this patch I've written for paperclip:
http://github.com/tomafro/paperclip/commit/81e962d54513bc33ce195ca5fc391de683e3db6f
To use it, you would need to register jpeg, png and gif mime-types in
environment.rb or an initializer.
Tom
Actually, let me know what you find. I attempted to strip out extra
characters, but if IE is still making it act funny, I'd very much like
to know.
Thanks, and I hope that helps.
--
Jonathan Yurek
thoughtbot, inc.
jyu...@thoughtbot.com
617.482.1300 x114
If you upload jpegs, IE helpfully uses the mime-type 'image/pjpeg',
apparently whether the jpeg is progressive or not. In my tests, PNGs
can be 'image/x-png' too, but GIFs came out as expected: 'image/gif'.
Sounds like a probable cause to me.
Tom