download and save a file

Björnke von Gierke bvg at mac.com
Sat May 28 07:40:05 EDT 2011


method two is called "anonymous ftp" aka. no login. It used to be widely used for file sharing, but these days there's almost no server that's so liberal.

Note that for smaller tasks, you can also use put for ftp:

put theData into "ftp://user:pass@url.com/folder/folder/textfile.txt"

On 28 May 2011, at 12:17, Francis Nugent Dixon wrote:

> Hi from Beautiful Brittany,
> 
> Now I am confused !
> 
> As Richard says : It's fun to do it in LiveCode,
> so, even though I use CyberDuck regularly
> (what a beautiful app !), I thought it would be
> fun to write a little stack in LiveCode for Upload
> and Download. After all, "LiveCoding" IS fun !.
> I found documentation on the Internet which
> indicated for an FTP Upload :
> 
> put "ftp://" & FTPUSER & ":" & FTPPASS & "@"
> & "ftp.ben.on-rev.com/public_html/" & tFileName into tDestination
> libURLftpUploadFile tFileForUpload, tDestination, "uploadComplete"
> 
> This seemed reasonable to me, as CyberDuck uses
> similar parameters.
> 
> Now Richard points me to a document which says :
> 
> put "ftp://ftp.xxxxxx.com/uploads/" & tFileName into tUrl
>          libUrlFtpUploadFile tSourcePath, tUrl, "loadDone"
> 
> Does this mean that we have two Upload options :
> 
> 1 - Check me for authorization, and Upload if I'm square !
> or
> 2 - Just DO IT !
> 
> If this is true, why would I bother with the complications
> of method 1, when I obviously know what I'm doing if
> I use method 2 in a LiveCode app ?
> 
> -Francis
> 
> "Nothing should ever be done for the first time !"
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list