FTP File To FTP Server

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

FTP File To FTP Server

Post by warrenk » Thu Mar 12, 2009 4:06 am

I want to FTP a file to a server and am trying to use the following command:

libURLftpUploadFile "/work.db","ftp://ftp.website.com","Complete"

How do I include the user name/password to login to the website?

Thanks for any help!

Warren

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Mar 12, 2009 7:12 am

You put the username and password into the server URL:

Code: Select all

libURLftpUploadFile "/work.db","ftp://username:password@ftp.website.com","Complete" 
You should probably UrlEncode[) the name and password.

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply