cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Help with libcurl on FTP upload

From: Tiago Conceição <tiago_caza_at_hotmail.com>
Date: Tue, 22 Jul 2008 19:03:05 +0000

no because works weel i i upload only "motd.txt", but if i use

st_ftpupload <host> <source> [dest] [rename] [timeout]
] st_ftpupload "****:******@**************/httpdocs" maps/motd.txt maps/motd.txt.tmp maps/motd.txt
ServerTools: Uploading 'maps/motd.txt' 1134 Bytes.
ServerTools: Fail (21) on try upload a file to FTP, check your host, username, password

> Subject: RE: Help with libcurl on FTP upload
> Date: Tue, 22 Jul 2008 19:53:06 +0200
> From: Patrick.Monnerat_at_datasphere.ch
> To: curl-library_at_cool.haxx.se
>
>
> Tiago Conceição wrote:
>
> > Also if i go to ftp, under folder "httpdocs/maps/" i can see the file created "motd.txt", but not get renamed
>
> > Why i get this errors? now to fix it?
>
> Probably because you do not specify "renameTo", so it is NULL. In this case, RNFR is sent, but not RNTO. You have to issue both or none !

_________________________________________________________________
Confira vídeos com notícias do NY Times, gols direto do Lance, videocassetadas e muito mais no MSN Video!
http://video.msn.com/?mkt=pt-br
Received on 2008-07-22