Guest User

Untitled

a guest
May 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. == *Using Rails3 with uploadify*
  2.  
  3. Add this to 'scriptData' in js (which is loading uploadify)
  4.  
  5. <pre>
  6. <code>
  7. '_maxhost_upload': $('meta[name=cses]').attr('content')
  8. </code>
  9. </pre>
  10.  
  11. And this to yours application layout
  12.  
  13. <pre>
  14. <code>
  15. %meta{ :name => "cses", :content => cookies["_xyz"]}
  16. </code>
  17. </pre>
  18. where *_xyz* is Yours session cookie key.
Add Comment
Please, Sign In to add comment