libURLftpUploadFile insanity
Dave Cragg
dcragg at lacscentre.co.uk
Sun Jun 25 03:08:59 EDT 2006
On 25 Jun 2006, at 04:07, stevex64 wrote:
>
> This one should be simple and it's driving me insane! Here is the
> code:
>
> on mouseUp
> answer file "Select a file to upload"
> put "me at mydomain.com" into userName
> put "myPW" into userPassword
> put "ftp.mydomain.com" into myServer
>
> put "ftp://" & URLEncode(userName) & ":" & userPassword & "@" &
> myServer
> into myFTPURL
> libURLftpUploadFile it, myFTPURL
> put libUrlErrorData(myFTPURL)
> end mouseUp
>
> After I get the select file dialog box and select the file I want
> to upload,
> I always get this message, "invalid URL:"
The url has to be a path to a file on the server, not just the server
itself. For example,
put "ftp://" & URLEncode(userName) & ":" \
& userPassword & "@" & myServer & "/myFile.txt" \
into myFTPURL
Dave
More information about the use-livecode
mailing list