>> My guess is you're not passing it along via Flash.  See this bit in 
>> app/views/home/index.html.erb where I invoke the swfupload object.  See 
>> where it's passing the session key and the authenticity token?  That's 
>> important.  And also why you need that middleware stuff.  
>> 
>>  $(document).ready(function() {
>>    swfu = new SWFUpload({
>>      upload_url                   : "<%= upload_path %>",
>>      file_post_name               : "Filedata",
>>      post_params                  : {
>>                                      "<%= key = 
>> ActionController::Base.session_options[:key] %>" : "<%= cookies[key] %>",
>>                                      "<%= request_forgery_protection_token 
>> %>"    : "<%= form_authenticity_token %>"
>>                                     },
> 
> You can also just include swfupload.cookies.js (it's in the plugins folder 
> when you download SWFupload from the site and you just include it after 
> swfupload.js) and never worry about passing in the right cookies, it will add 
> them to the post parameters automatically.

Good to know.  That won't help with the authenticity token though...  But 
definitely handy if you need more cookies than just the session!

-philip

-- 
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