Hello,

Currently, I am trying to write a program which should upload a file to an FTP server. As recommended in the QT Docu., I chose to use QNetworkAccessManager's put function instead of QFtp. As far as I know, I should be able to access the FTP Server without using any security measures.

Qt Code:
  1. QUrl uploadurl("ftp://ftp.drivehq.com/wwwhome/");
  2. uploadurl.setUserName("XXXXXX");
  3. uploadurl.setPassword("XXXXXX");
  4. uploadurl.setPort(21);
  5. QNetworkRequest upload(uploadurl);
  6. QNetworkAccessManager *uploadman = new QNetworkAccessManager(this);
  7. uploadman->put(upload, file);
To copy to clipboard, switch view to plain text mode 

Basically, this is the code which should perform the upload.
However, the file will not show up on the server. The file is about 1-2kb "big", and is opened as ReadWrite.
Has anybody got an idea what I am doing wrong?

Thank you for your time!

cheers
replax