On 26 Jul 2009, at 10:15, Josh wrote:

> I'm not sure if this is what you are looking for, but the session
> cookies don't get sent by flex/flash when you upload a file. I had to
> make a request before the file upload to get a unique upload id, store
> it the database and return it to flex. Then when I acually send up the
> file I tag it in the params of the upload.
>
> I'm interested to know if anyone came up with a other workarounds for
> the problem?


For more recent versions of Rails (afaik 2.3 or higher):
http://thewebfellas.com/blog/2008/12/22/flash-uploaders-rails-cookie-based-sessions-and-csrf-rack-middleware-to-the-rescue

If you're using an older Rails version, you can check out a post I  
made quite a while ago:
http://www.ruby-forum.com/topic/161291


Best regards

Peter De Berdt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to