Skip to main content
New Participant
September 4, 2013
Question

FTP Connection with backslash in username

  • September 4, 2013
  • 1 reply
  • 3589 views

Hello,

I am using Peter Torpey's FTPConnection.jsx to upload rendered movies to a server directly from After Effects. Works great on my server! Now, I have to use Microsoft's Azure for hosting this project, and their FTP username includes a backslash. The connection is refused ("Login failed: Server rejected username"). Seems like ExtendScript's Socket doesn't like the backslash in the FTP username!

The logfile contains (domain\username is my ftp username):

--Put: successfully connected

+220 Microsoft FTP Service

--Found code: 220

:USER domain\username

+451 The parameter is incorrect.

:QUIT

When defining the ftp username in JavaScript, I escape the backslash:

var ftpUser = 'domain\\username';

The FTP credentials work with a FTP desktop client (cyberduck in my case) and also in command line.

Any tips of how to get this working?

This topic has been closed for replies.

1 reply

Lazlo_Hollyfeld
Inspiring
September 6, 2013

Have you tried:

var ftpUser='domain\\\\username'

Four slashes instead of two, and have you tried:

var ftpUser=encodeURI('domain\\username')

If those do not work, have you verified that you can connect to the FTP server via a normal FTP client?

--Arie

New Participant
September 10, 2013

Hi Arie,

thanks for your help. Unfortunately the two suggested solutions don't work. I have also tried other options with quotation marks (which work in command-line ftp) like

var ftpUser='\"domain\\username\"';

and none of them work.

I can definitely verify that the FTP connection works with an FTP client or via the command line in OS X.

I can also connect without any problems with a PHP script, so the current workaround uploads to a "normal" FTP server and then a PHP script transfers the files to the Azure server.

Best,

Andreas