Forum: Ruby on Rails POST op parameters are coming in as StringIOs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
94c40fd67ffecc80b479aa9d7df3c494?d=identicon&s=25 Jonathan del Strother (Guest)
on 2006-05-24 12:24
(Received via mailing list)
I'm receiving a multipart post request from another server.  The
request parameters are being received as StringIOs, rather than plain
strings.   For instance :

Processing MessagesController#receive (for 83.166.68.31 at 2006-05-24
10:36:53) [POST]
   Session ID: eedafb24033be0714f8133f02810083f
   Parameters: {"message"=>#<StringIO:0xb7503358>, "date"=>#<StringIO:
0xb7501f30>, "from"=>#<StringIO:0xb7502944>, "type"=>#<StringIO:
0xb7503d6c>, "action"=>"receive", "id"=>#<StringIO:0xb750151c>,
"to"=>#<StringIO:0xb75047bc>, "controller"=>"messages"}


If I try to get the actual parameter with (for instance) params
[:message].read, it works as expected...but surely this shouldn't be
necessary?



Any idea why this is happening?  I'm out of ideas...any help would be
massively appreciated.

Jon
This topic is locked and can not be replied to.