0
Write / read csv file in Js
I have not very much experience with js but canyou tell me how to write, read and create csv files in js?
3 ответов
+ 2
You cannot create, write or read csv file in JavaScript due to security concerns.
+ 1
You must do this at backend side. You can send the data from client with ajax in json format to a webservice build in php (for example). In php you transform the data to csv format and force download the file.
http://php.net/manual/en/function.fputcsv.php
0
And what if we want to save the files at the client?