How to upload a html extracted data to linux server

  • Thread starter Thread starter msp4422
  • Start date Start date
M

msp4422

HI All,

I have extracted data from an online pubmed database in my browser which I am displaying in my browser. I also naeed to send this data to my linux server ( /var/www/html/dsd/ ) where it is processed and generates a results.txt file. I need to pick this file and display in other html table.

How can i achieve this upload and picking file from server using ajax and html or php.

currently i am downloading the csv file to my desktop without any problems. But my aim is to send this csv file to server and pick the result file.

csvData = 'data:application/csv;charset=utf-8,' + encodeURIComponent(csv2);
$(this)
.attr({
'download': filename,
'href': csvData,
'target': '_blank'
});
}
$(".export").on('click', function (event) {exportTableToCSV.apply(this, [$('#dvData>table'), 'Export.txt']); });

Continue reading...
 
Back
Top