Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Multiple image upload save the same image on all uploads #106

Open humbertocruz opened 7 years ago

humbertocruz commented 7 years ago

Hello, I'm trying to upload several files ( or at least two ) but the Cloudinary.collection show the same image ( usually the first on ) on all uploads and on the Cloudinary media library. With just one, works great.

I just add "multiple=multiple" on the file upload input. My upload event:

'change #uploadField': function(e) { var files = e.currentTarget.files; Cloudinary.upload(files, { folder:"shared", tags:['wallpaper','public'], }, function(err,res) { if (err) { console.log(err); } else { Arquivo.insert(res); } } ); },