I got the same problem
I tested a rails application using attachment_fu, and got this response in my browser when redirect after an upload:
--------------
Content-Type: text/html; charset=utf-8
Set-Cookie: _session_id=d72520c8e74984964c9d66634a8ac457; path=/
Status: 302 Found
Location...