Big File Upload


#1

I was working with file upload with cfs:standard-packages and cfs:filesystem.

   "change .myFileInput": function (evt, tmp) {
        FS.Utility.eachFile(evt, function (file) {
            var theFile = new FS.File(file);
            Imports.insert(theFile, function (err, filesObj) {
                if (!err) {
                    Meteor.call('filterCSV', filesObj._id, file.name);
                } else {
                    console.log('ERR: ' + err.message);
                }
            });
        });
    }

I was trying to upload a big CSV file, what I want to do is to have somewhat a progress bar when it reaches 100% it will evaluate this line: Meteor.call(‘filterCSV’, filesObj._id, file.name);