Re: How to FTPCommand to upload file

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Frank Hickman (fhickman_nosp_at_m_noblesoft.com)
Date: 02/18/04


Date: Wed, 18 Feb 2004 02:13:20 -0500

Perhaps you should try to STOR the file instead of APPE it.

HTH

-- 
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
"mjh" <jongh@21cn.com> wrote in message
news:OHRsoZd9DHA.4088@tk2msftngp13.phx.gbl...
> Hi, In FTP server, the size of file always zero
>
>
> CHAR szTemp[256];
> wsprintf (szTemp, "APPE %s", "test.txt");
>
> BOOL bRet = FtpCommand(hConnection,
>     TRUE,
>     FTP_TRANSFER_TYPE_ASCII,
>     szTemp,
>     0,
>     &hResponse);// The handle to read the response
> if (!bRet) {
>  cout << "FtpCommand failed, error: " << GetLastError() << endl;
>  return;
> }
>
>

Quantcast