ftp access

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
e3di
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 11
Joined: Wed Jan 27, 2010 11:06 pm

ftp access

Post by e3di » Wed Nov 30, 2011 11:24 am

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: ftp access

Post by Mark » Wed Nov 30, 2011 11:56 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Android Deployment”