Page 1 of 1

ftp access

Posted: Wed Nov 30, 2011 11:24 am
by e3di
Hi,

I am trying to get an app to connect upto an ftp and pull down a list of the files on the server. My problem is that on Android it doesn't seem to want to connect, it works fine on desktop and on iOS.

Here is what I have got so far.

Code: Select all

  put "username" into userName
   put "password" into userPassword
   put "ftp://"&urlEncode(userName)&":"&urlEncode(userPassword)&"@ftp.e3di-studio.com/e3Dimage/" into fileURLtoGet
   put URL fileURLtoGet into fld "images"
Any ideas would be really appreciated.


Thanks very much.

Neil

Re: ftp access

Posted: Wed Nov 30, 2011 11:56 am
by Mark
Hi Neil,

If you add a line after the put URL command, similar to

Code: Select all

put the result into fld 1
then we might be able to say something useful about it. You might also want to add a try control structure:

Code: Select all

try
  // your entire script here
catch myErr
  put cr & myErr after fld 1
end try
Kind regards,

Mark