I have a page and in it i have several form upload fields. I dont want to do multi upload but rather upload one document at a time and grab their paths separately.From he code i have seen and tested and seen it work,the change event is hooked to the form and not the individual upload field like
<form class="formclass">
<input type="file" class="classhere"/>
</form>
so to upload file using this form i would do
'change .formclass': function(event, template) {
alert('we are here');
FS.Utility.eachFile(event,function(file){
var fileObj=new FS.File(file);
Uploads.insert(fileObj,function(err){
var lspath = 'awesomepath';
var au = Meteor.absoluteUrl();
var au = au.replace(/\/$/, "");
localStorage.setItem("one", lspath);
var ls = localStorage.getItem("one");
$(".onepath").val(ls);
});
})
}
Since i have several form upload fields in the same form,how can i change my code to respond to events identified by the class of the individual form upload fields?.