You have to call the API. This code reassembles the CSV to call API_ImportFromCSV:
gotCSV("myFile").then(function(csv){
console.log(JSON.stringify(csv, null, " "));
var names = _.pluck(csv, "name");
console.log(names);
var csv_blob = _.map(csv, function(row) {
var items = [];
items.push(row["name"]);
items.push(row["phone"]);
items.push(row["email"]);
return items.join(",");
}).join("\n");
console.log(csv_blob);
var promise = $.post(dbid, {
act: "API_ImportFromCSV",
records_csv: csv_blob,
clist: clist,
skipfirst: "0"
});
$.when(promise).then(function(xml){
alert("imported!");
});
});
The above code didn't transform the data in any way buy you can imagine that any manner of filtering or transformation can take place once you have the csv object isolated. I threw in a pluck instance for you (look for names).