Take the 2-minute tour ×

I use jQuery File Upload in Rails with Carrierwave gem. And I have simple file upload form as follows:

= form_for [@project, Attachment.new], :url => projects_path, :html => { :class => 'form-horizontal', :multipart => true, :id => "fileupload"} do |f|
  = f.file_field :file, :multiple => true
  = f.submit nil, :class => 'btn btn-primary'

My Project will allow to upload multiple files, and each file will be stored in Attachment model.

But in my projects controller, I can't get serialized upload file. I have try to debug with other example and able to get by using params. Any help?

Thanks in advance,

share|improve this question
I found out that whenever I initialize fileupload by: $('#fileupload').fileupload() I can't receive the file on server. If I comment above file, I work normally :( –  Tam Vo Jan 2 '13 at 18:51
Do you have some errors? Can you provide with controller and js code? –  jizak Apr 16 '13 at 11:17

Your Answer



Browse other questions tagged or ask your own question.