Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
I've a form with the following fields: Product Name (text field) Product Image (file field) Product PDF (file field)
Now, I've a requirement that should add one more XML file to this same Product Model
Product XML (file field)
And I'm stuck here. Googled for "rails multiple file uploads of different mime-types" but always found the result like multiple files for the Model of the same type.
One solution would be to add the File upload functionality to separate Model and form, but my client needs it in the same form. Anybody, plz, show me the directions or has this been already accomplished using Paperclip??
I found these three tutorials. They all uses the same technique pretty much. you will need to play with them a bit to get it right.
http://www.flex888.com/122/multiple-file-upload-with-ruby-on-rails-acts_as_attachment.html http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/ http://www.gauda.de/ruby-on-rails/multiple-file-upload-with-ruby-on-rails-and-file_column/
