FTP delete

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Saman Sjr.
Posts: 49
Joined: Sat Nov 30, 2013 6:40 am

FTP delete

Post by Saman Sjr. » Thu Aug 23, 2018 10:35 am

this code run on desktop but return "not implemented" error on android

Code: Select all

put "ftp://username:password@my.ftp.server/filename.jpg" into FTPfile2Del
delete URL FTPfile2Del
the dictionary said delete URL can run on android,
what is the problem ?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7421
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: FTP delete

Post by FourthWorld » Thu Aug 23, 2018 11:04 am

Unless this app is just for your personal use, FTP is not the right tool for that job.

Have you considered HTTP?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Fri Aug 15, 2008 7:15 am

Re: FTP delete

Post by bangkok » Thu Aug 23, 2018 12:10 pm

What about tsNetSendCmd or tsNetSendCmdSync ? (tsNet library with Indy Edition, it works on Android)

from the dictionary :

Code: Select all

local tResult, tCmds
put "CWD /upload_dir" into tCmds
put cr & "DELE backup.dat" after tCmds 
put tsNetSendCmd("1", "ftp://user:pass@ftp.example.com", tCmds,  "transferComplete") into tResult

Saman Sjr.
Posts: 49
Joined: Sat Nov 30, 2013 6:40 am

Re: FTP delete

Post by Saman Sjr. » Thu Aug 23, 2018 2:19 pm

Thank you for both of you
I considering HTTP method at the moment

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7421
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: FTP delete

Post by FourthWorld » Thu Aug 23, 2018 8:27 pm

As you explore that, be sure to focus on HTTPS, rather than HTTP. HTTPS is so common these days that's probably what you were already doing, but it's such an important difference, esp. for things that allow modification of client resources, that I figured it was better to err on the side of thoroughness here.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Android Deployment”