download and save a file
Francis Nugent Dixon
effendi at wanadoo.fr
Sat May 28 06:17:55 EDT 2011
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 !"
More information about the use-livecode
mailing list