Fixing PUT to work with multipart messages


#1

We recently wrote our API to be fully REST, and so user PUT for
updates. The problem is, we need multipart requests, but there’s a bug
in CGI, and it doesn’t work.

The rails code as a fix for POST requests, but not for PUT requests.
So we added PUT as well and it works great now. I posted this as a
patch in trac (http://dev.rubyonrails.org/ticket/5235) so you can get
it if you need this functionality.

Yu can also read about it in my blog:
http://devblog.famundo.com/articles/2006/05/30/fixing-multipart-post-in-rails

Bye,

Guy.