I'm trying to upload a simple txt file to ftp server but getting "QNetworkReply::ContentOperationNotPermittedError" reply from the server and i think it is about my file hierarchy.
Here is the file order of my ftp server and my qt-ftp configuration :
QUrl url("f13-preview.125mb.com/www/home/repo/test.txt");
url.setHost("f13-preview.125mb.com");
url.setUserName("1896230");
url.setPassword("mypassword");
url.setPath("f13-preview.125mb.com/www/home/repo/");
url.setScheme("ftp");
I can't get, why do you use QNetwork instead awesome QFtp module, that provides all necessary for work with ftp?
and then use QFtp::put. That's all you need.