What does it mean with the error from a ftp upload return the name of the host? For example, if put x into url "ftp://user:password@abc.com/file.txt" "the result" is 'abc.com'. The same identical code will execute on Windows and Linux without failure. I have read the release notes. I am fully aware that they state that Android is much more stricter than previous platforms. To that end I have check and rechecked my credentials they are coded as shown below. I have also tried both the server name abc.com (abc.com is an example) and the physical ip address "ftp://user:password@10.10.10.5/file.txt" (10.10.10.5 is an example) "the result" is '10.10.10.5' each time.
put urlencode("user") & ":" & urlencode("password") into x
Grasping at straws,
Kevin
FTP Upload
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: FTP Upload
Has anyone successfully uploaded/downloaded files via FTP and LiveCode? If so I would appreciate any input on the process you can provide.
Re: FTP Upload
Here you seem to be trying to write the contents of a variable to a file on a ftp server:
But then you ask:
So I'm a little confused Anyway, this works for me:
Note the brackets around the ftp path.
Gerry
Code: Select all
put x into url "ftp://user:password@abc.com/file.txt"
Code: Select all
Has anyone successfully uploaded/downloaded files via FTP and LiveCode?
Code: Select all
put "hello world" into url ("ftp://username:password@domain.com/somefolder/"&"hello.txt")
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: FTP Upload
You are correct. It is conforting to know someone has it working on Android. Now I just need to find out what the loose nut between the keyboard and chair is doing wrong.
Thanks,
Kevin
Thanks,
Kevin
Re: FTP Upload
Hmmm my code works on iOS and I've never tried it in android...but I can't imagine why it wouldn't work.
Gerry
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.