I had the same problem and the above comment from OP helped me find the answer. Here is what worked for me:
$('#fileupload').fileupload({ ... other options formData: [ { name: 'authenticity_token', value: $('meta[name="csrf-token"]').attr('content') } ] });
Note that the layout file (application.html.erb in Rails 3.2) should have the following:
<%= csrf_meta_tags %>
Santosh
source share