Synchronization with FTP with CSPro 7

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Synchronization with FTP with CSPro 7

Post by sah »

Dear Greg & Josh
Just inquiring, if it is possible to use the function sync connect to connect to FTP for those who don't have a server and if so, is it the same file specification as the server syntax.

Connect to ftp
if syncconnect(ftp, "http://192.168.10.10", "ftpuser", "password")

Thanks
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Synchronization with FTP with CSPro 7

Post by josh »

Yes, you can. However you have to as an ftp url rather than a http url:

if syncconnect(ftp, "ftp://192.168.10.10", "ftpuser", "password") then

In the current beta release (March 31) FTP only works with syncfile() but in the final CSPro 7 release coming very soon it will support syncdata() too.

Also note that you can leave out the username and password arguments and CSPro will prompt you for them the first time and then save them in secure storage.
Post Reply