Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

coderanger

Duh, this works:
var transferResult = session.PutFiles(s.toString(), r.toString(), false, transferOptions);
coderanger

Failure using Strings in Javascript

When using Javascript, if you pass a JS string into PutFiles it fails with "Type error":

This works...
var transferResult = session.PutFiles("D:\\test.xml", "/", false, transferOptions);


This does not...
var s = new String("D:\\test.xml");

var r = new String("/");
var transferResult = session.PutFiles(s, r, false, transferOptions);


Any idea how to fix this??