LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2014, 09:50 AM   #1
msp4422
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
How to upload a html extracted data to linux server


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.

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']); });
 
Old 04-25-2014, 10:01 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Cant you just use wget on the destination server to download the file?
 
Old 04-25-2014, 10:50 AM   #3
msp4422
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi I found uploading the file instead of data.. like csvData is the data i generate online(extracted from another site) and it needs to uploaded directly to the server ( /www/var/html/ ).. I am very new to this technology.. Could you tell me How i can upload the data generated online ( csvData contains all the data ) instead of file. thank you.

for each <loop>

csvdata[i] =json4.PubmedArticle.MedlineCitation.PMID + "," + json4.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText;



i=i+1;
if ( i==count+1)
{
// results2=results;
j=i;

//////********* I need to upload the csvdata here to /var/www/html/
//////********* a script is run server to create new file and then pickup new_csvdata from /var/www/html to display in the webpage.

//*** display in table


return;

}

Last edited by msp4422; 04-25-2014 at 11:20 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to upload data into the ftp server siddhant_2010 Linux - Server 2 04-01-2010 11:38 PM
Can't upload images with HTML forms El Mago Programming 7 02-18-2010 08:09 AM
[SOLVED] How to modify html data sent by web server application? foreigner82 Programming 7 12-13-2009 04:51 PM
HTML page to upload files noir911 Programming 1 04-22-2009 11:26 PM
What's the fastest way to upload 3gb of data to my dedicated linux server? bob--r Linux - Newbie 6 09-21-2008 11:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration