HI Shikha!!! Are u passing the correct path of the file to be uploaded in the CFtpConnection::PutFile() function??? i am new to programming but i had developed a FTP client just a couple of months back.. so, i want u to see if you are passing the correct path in the PutFile() function. and like what Sir David Crow said, without having a look at ur code, we may not be able to give u the correct suggestions.. so, just see if u can post the sample of ur code... i used the following lines of code to upload a file called as 'test.txt' residing on my 'C' drive.the file will be stored as 'ftptest.txt' on the FTP server. //Create a session variable and get a pointer to the FTP connection.. CInternetSession sess(_T("MyFtpModule")); CFtpConnection* pConnect = NULL; //use pConnect to Connect to the server pConnect = sess.GetFtpConnection(_T(/*pass the parameters here*/)); //when the connection is established,use PutFile() to upload BOOL bUploaded = pConnect->PutFile("C:\\test.txt","ftptest.txt",FTP_TRANSFER_TYPE_ASCII,1); I want others to correct if i am wrong..
Regards, vijay Aroli.