Hi @sunil111
Take a look on this solution: https://github.com/VeliovGroup/Meteor-Files/blob/master/demo/client/upload/upload-form.coffee#L53
var file = e.target.files[0];
var Uid = Meteor.userId();
for(var i=0; i<file.length ; i++){
Images.insert({
file: file,
streams: 'dynamic',
chunkSize: 'dynamic',
meta: {Uid: Uid}
}, true);
};
Sir ..This is my code..
i am so confused. please ..can you tell me how to multiple image insert in Image.insert statement.
Template.uploadForm.events({
'change #fileInput': function (e, template) {
if (e.currentTarget.files) {
_.each(e.currentTarget.files, function (file) {
Images.insert({
file: file
});
});
}
}
});
Thank you so much @dr-dimitru
@sunil111 glad it helped, do not hesitate to ask more.
Please, support this project by:
Most helpful comment