Hi ,
I want to upload image file in ftp server but i'm not able to upload file in it.Any one give a solution and scratch code for uploading image file ftp server.

Below is the scratch code which i have developed, this code is executed without an error but "bg.png" file is not uploaded in the server.

QFTP *ftp=new QFtp;
ftp->connectToHost("ipaddress");
ftp->login("username","password");
ftp->list();
ftp->cd("directory name");
// ftp->mkdir("test");
// ftp->cd("test");
ftp->put(new QFile("bg.png"),"bg.png");
ftp->list();


Thanks in advance