how to read raw post data?

Hi all,

I'm trying to get SWFupload to work in Rails 2. Since flash does not send cookies (containing session_id) to rails, my session id is sent as a post parameter. I tried to override CGI::Session's initialize method and grab the session id from the post parameter, but cgiwrapper.env_table['RAW_POST_DATA'] always returns nil. Is there another way to get the raw post data inside CGI::Session's initialize method?