Click here to Skip to main content
15,887,446 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I use your code to interact with a product by FTP.
Yesterday it works perfectly and now I always obtain an error when i send my file.
When i try to the same manually by using Filezilla, it works.

here my code simplify
C++
nsFTP::CFTPClient ftpClient;
nsFTP::CLogonInfo logonInfo("192.168.1.1", 5551, "anonymous","anonymous@user.com");
 
ftpClient.Login(logonInfo);
success = ftpClient.IsConnected();
 
success = ftpClient.UploadFile(mStructure.PayloadPath.c_str(),"/jpsumo_update.plf");


So i just login on the FTP, theni check if i am connected. The answer is true so for i am connected.
Then i try to upload the file.
Yesterday, the file was copied perfectly and now, I obtain always false. When i check the product with Filezilla. the file is here but he is empty (its length is 0 byte).

Do you have an idea why it works before but not todau. I precise that i change nothing on this part.

Thanks and regard,

Emile GAULTIER.
Posted
Comments
Jochen Arndt 18-Mar-14 7:07am    
If you refer to code from an CodeProject article (guessed it is http://www.codeproject.com/Articles/8667/FTP-Client-Class) you should post your question in the article forum (scroll down to the bottom of the article).
Member 10675976 18-Mar-14 7:09am    
Thank you, i wil do it now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900