How do I COPY a file

Get help using Construct 2

Post » Tue Jun 10, 2014 6:22 pm

well in my app i just have one button, download and when i do

Onclicked -> AJAX -> Request "url+filename".

AJAX -> Ajaxlastdata completed -> Nodewebkit -> Write AJAXlastdata to file "C:\temp\test.doc"

bu that does nothing at all :s
B
41
S
16
G
7
Posts: 1,747
Reputation: 9,957

Post » Tue Jun 10, 2014 7:01 pm

i found this in node js.

can someone help me with that ?

Ftp.get(remotePath, localPath, callback)

Stores the remote file directly in the given local path.

ftp.get('remote/file.txt', 'local/file.txt', function(hadErr) {
if (hadErr)
console.error('There was an error retrieving the file.');
else
console.log('File copied successfully!');
});
B
41
S
16
G
7
Posts: 1,747
Reputation: 9,957

Previous

Return to How do I....?

Who is online

Users browsing this forum: John Cutter, Yahoo [Bot] and 11 guests