I have this (strange) requirement in our simple avatar upload. I am
using paperclip but I must not create the temp files. Instead, the
uploaded file's content must be passed to ImageMagick as string. I
have no problem patching up paperclip (I already patched it to avoid
'convert') but I'm having problem telling Rails not to use a tempfile.
I have traced the code here
vendor/rails/actionpack/lib/action_controller/vendor/rack-1.0/rack/utils.rb.
When I replaced Tempfile with StringIO, it gets into an infinite loop.
Any ideas/workarounds? Removing paperclip is also an option it that
would make things better.
Regards,
Greg
--
Starting From Scratch
http://gregmoreno.ca
I'm on Twitter too!
http://twitter.com/gregmoreno