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
34
S
13
G
6
Posts: 1,643
Reputation: 8,761

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
34
S
13
G
6
Posts: 1,643
Reputation: 8,761

Previous

Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], ksiads, marc254, marcinkowski, mtnboy22, Rable and 5 guests