Hello. I'm developing an extension for Adobe CC products (CEP) that uses 
node to upload a small CSV file to an ftp server. 

Using jsftp I'm able to write a file to my server but the contents are 
empty. Its just and empty file and not the data I intended to send.

Here is my code.

function uploadHours() {
    var jsftp = require("jsftp");

var ftp = new jsftp({
  host: localStorage.host,
  port: Number(localStorage.port), // defaults to 21
  user: localStorage.user, // defaults to "anonymous"
  pass: localStorage.ftpPass // defaults to "@anonymous"
});

ftp.auth(localStorage.user, localStorage.ftpPass, function(hadErr) {
    if (!hadErr)
    alert("auth succesfull")
});
    ;
  ftp.put('C:/Program Files/Adobe/Adobe After Effects CC 2014/Support 
Files/Hours Tracker/index2.html', '/public_html/indexTester2.html', 
function(hadErr) {
      if (!hadError)
    alert("File transferred successfully!");
  });
}

I'm what you call a total rookie at node so any help is awesome.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/e780512c-0e1e-4545-9776-bbb0418a974e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to