Upload

Dave Cragg dcragg at lacscentre.co.uk
Mon Jul 29 05:27:00 EDT 2002


At 11:18 pm -0400 28/7/02, Simon Lord wrote:
>I got this mostly working I think.  but Here's what happens:
>
>The url:
>ftp://slord@marelina.com:xxxxxxx@www.marelina.com/downloads/osxhints/
>The file:   /Applications/MetaCard/Direct_Chat.zip
>The error:   error File not specified
>
>I'm using the code you sent with the obvious variables hardcoded in
>just to test it out.  I'm wondering if it has something to do with a
>product we use on our server but I won't know that until morning.
>If you spot anything please let me know.

You need the full file path of the destination url. For example;

ftp://slord@marelina.com:xxxxxxx@www.marelina.com/downloads/osxhints/Direct_Chat.zip

Also, you'll probably have to urlEncode your user name as it contains 
the "@" symbol.

For example:

put 
"ftp://<USER>:<PASS>@www.marelina.com/downloads/osxhints/Direct_Chat.zip" 
into tUrl
put urlEncode("slord at marelina.com") into tUser
put "xxxxxxxx" into tPass
replace "<USER>" with tUser in tUrl
replace "<PASS>" with tPass in tUrl
put "binfile:/Applications/MetaCard/Direct_Chat.zip" into tSourceUrl
put url tSourceUrl into url tUrl
if the result is not empty then
   answer the result
end if

For more infor on libUrl, see the following:

<http://www.runrev.com/revolution/developers/interimreleases/liburl/liburldoc.shtml>

Cheers
Dave Cragg



More information about the metacard mailing list