Skip to content

Instantly share code, notes, and snippets.

@goldnuggets24
Created January 20, 2015 15:58
Show Gist options
  • Save goldnuggets24/a6785811283af72ed440 to your computer and use it in GitHub Desktop.
Save goldnuggets24/a6785811283af72ed440 to your computer and use it in GitHub Desktop.
Add mutliple file uploads to Collection Craze through filepicker
@e = Item.find(50).pictures.first.image.split(",")
@e.each do f
@g = Picture.new(:image => f, :title => 'multiple file upload test', :user_id => 5, :item_id => 50, :description => "multi upload desc")
@g.save
end
# @e.destroy // eliminate orig image with multiple files in it???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment