'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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
