how to upload multiple files using carrierwave
hi
i am using carrierwave gem for file upload. It is working fine with single upload, but how to upload multiple files please help me.
class AttachmentUploader < CarrierWave::Uploader::Base
storage :file
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
def extension_white_list
%w(xlsx pdf doc htm html docx png jpg jpeg xls)
end
def filename
"#{model.invoice_number}.#{file.extension}" if original_filename.present?
end
end
how to upload multiple files using carrierwave
hi
i am using carrierwave gem for file upload. It is working fine with single upload, but how to upload multiple files please help me.
This is my form:
attachment_uploader.rb:
I used http://richonrails.com/articles/allowing-file-uploads-with-carrierwave for refernce.