1 year ago
#365099
Rajesh Kumar
I have uploaded csv files due to big size on server, I want to know if it's possible to read csv and convert in json.... in api side not client side
I have uploaded csv files due to big size on server, I want to know if it's possible to read csv and convert in json in api side not client side
const csvFilePath = require('../../../public/uploads/abc.csv');
Papa.parse(csvFilePath, {
header: true,
download: true,
skipEmptyLines: true,
step: function (row) {
console.log("Row:", row.data);
},
complete: function (results) {
console.log("bbbbbbbbbbbbbbbbbbbbbbbb");
console.log(results);
}
});
but unexpected.. result
Response.... getting...something...csv string but missing something
papaparse
0 Answers
Your Answer