ftp
[1/3] from: hijim::pronet::net at: 9-Jul-2001 11:33
I'm trying to add an ftp function to my html editor. I'm using the code
below, but I get an error message.
file-path is set to /C/web/menu.html
I know that is too much information. By the examples I see, I think
menu.html is enough. How do I reduce file-path to just the file? I tried
first file-path and last file-path -- still the same error. I know I
need to join a "%" to the file name in the read %menu.html part. Am I
mistaken here? It seems that ftp should know the whole path.
button 72 "Upload" [
set [user pass] request-pass/user/title "jimclatfelter"
User Name and Password:
if file-path <> none [
write ftp://user:[pass--ftp--geocities--com]/file-path read
file-path
]
]
** Access Error: Invalid port spec:
/C/web/menu.html
Thanks,
Jim
[2/3] from: louisaturk:eudoramail at: 9-Jul-2001 15:07
Jim,
Try setting file-path as follows:
file-path: %/C/web/menu.html
If I understand your problem that should work.
Louis
At 11:33 AM 7/9/2001 -0700, you wrote:
[3/3] from: agem:crosswinds at: 9-Jul-2001 23:12
RE: [REBOL] ftp
[hijim--pronet--net] wrote:
> I'm trying to add an ftp function to my html editor. I'm using the code
> below, but I get an error message.
<<quoted lines omitted: 14>>
> ** Access Error: Invalid port spec:
> /C/web/menu.html
hu, how did you do that?
if you really use
file-path: /C/web/menu.html
you should get
Script Error: read expected source argument of type: file url object block
and the ftp://... should use "file-path" instead of the value in it,
at least
>> a: %123
== %123
>> ftp://a
== ftp://a ;wrong
>> join ftp:// a
== ftp://123 ;right
what did you do here ? 8-0
well, to get %menu.html a hint:
>> split-path %/C/web/menu.html
== [%/C/web/ %menu.html]
to join a url:
>> user: "me" pass: "secret" file: %menu.html
== %menu.html
>> join ftp://[user ":" pass "@wherever/" file]
== ftp://me:[secret--wherever]/menu.html
> Thanks,
> Jim
send the url of your page here!
;-) Volker
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted