I can not get ftp to work on android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
I can not get ftp to work on android
Has anyone figured out why a ftp call that otherwise works on iOS, does not work on android?
I have wrestled with this problem enough hours and are now stuck.
set the defaultfolder to specialfolderpath("documents")
put URL("binfile:" & "./" & "tempic222" ) into myDock
put "ftp://USER:PASS@88.111.222.99/SSIn/Uid" into myFtpUpload
replace "Uid" with myGuid & "_Sign.png" in myFtpUpload
put myDock into URL myFtpUpload
if the result is not empty then
answer the result
end if
best regards,
Peter
I have wrestled with this problem enough hours and are now stuck.
set the defaultfolder to specialfolderpath("documents")
put URL("binfile:" & "./" & "tempic222" ) into myDock
put "ftp://USER:PASS@88.111.222.99/SSIn/Uid" into myFtpUpload
replace "Uid" with myGuid & "_Sign.png" in myFtpUpload
put myDock into URL myFtpUpload
if the result is not empty then
answer the result
end if
best regards,
Peter
/*Whats all the fuss with c# ?*/
Re: I can not get ftp to work on android
Hi Peter,
This does not look correct:
("binfile:" & "./" & "tempic222" )
Should only be a slash. Sometimes an OS will overlook discrepancy's.
Simon
Edit: oops http://quality.runrev.com/show_bug.cgi?id=11779
Still not fixed.
This does not look correct:
("binfile:" & "./" & "tempic222" )
Should only be a slash. Sometimes an OS will overlook discrepancy's.
Simon
Edit: oops http://quality.runrev.com/show_bug.cgi?id=11779
Still not fixed.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: I can not get ftp to work on android
Why break it up into three literals when it could be one?:Simon wrote:Hi Peter,
This does not look correct:
("binfile:" & "./" & "tempic222" )
Code: Select all
("binfile:./tempic222" )
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: I can not get ftp to work on android
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: I can not get ftp to work on android
And not to encourage you to use FTP but the workaround for QC problem I believe is to URLEncode your username and login information.
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: I can not get ftp to work on android
Could you also have the stack (local) call another stack that's located in a directory on a server? Would that help prevent your FTP login credentials from potentially being seen?FourthWorld wrote: Also, unless this is for your own personal use you may want to replace the FTP call with a call to a CGI that handles file uploads. FTP sends login credentials in plain text, so anyone using the app (or any interloper) could see the network stream and get control over that account on your server.
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: I can not get ftp to work on android
Is it so, that FTP does not work on android and I have to use CGI for this? I read on the forum that if it works in the development environment, it is almost certainly wrong in the stand-alone settings. I've tried everything I can think of, but nothing gives results.
It works on my mac
it works on my ipad
it does not work on my HTC
Unfortunately, in this case, Android is the platform that must function.
Grateful for any assistance
/ / / Peter
It works on my mac
it works on my ipad
it does not work on my HTC
Unfortunately, in this case, Android is the platform that must function.
Code: Select all
on myFTPsign
put "ftp://"& FTPUSER & ":" & FTPPASS & "@" & FTPHOST & "/" & SSIn & "/" & tFileName into myFtpUpload
replace "tFileName" with myGuid & "_Sign.png" in myFtpUpload
put myPic into URL myFtpUpload --This is where it gets stuck
if the result is not empty
then
answer the result
exit to top
else
end if
end myFTPsign
/ / / Peter
/*Whats all the fuss with c# ?*/
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: I can not get ftp to work on android
What do you mean by "call"? Do you mean "download", or "send a message to", or something else?shawnblc wrote:Could you also have the stack (local) call another stack that's located in a directory on a server? Would that help prevent your FTP login credentials from potentially being seen?FourthWorld wrote: Also, unless this is for your own personal use you may want to replace the FTP call with a call to a CGI that handles file uploads. FTP sends login credentials in plain text, so anyone using the app (or any interloper) could see the network stream and get control over that account on your server.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: I can not get ftp to work on android
Hi Peter,
As long as there is no "@" in your username then it works.
Simon
As long as there is no "@" in your username then it works.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: I can not get ftp to work on android
You might also try url encoding the user name and password:
put urlEncode(ftpuser) into ftpuser
put urlEncode(ftppass) into ftppass
put urlEncode(ftpuser) into ftpuser
put urlEncode(ftppass) into ftppass
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com