Hi everybody!

I'm trying to use QNetworkManagerAccess to upload a file. I've created a prototype (Python):

Qt Code:
  1. class Thread(QThread):
  2. def run(self):
  3. print "Starting thread"
  4. self.manager = QNetworkAccessManager();
  5. self.manager.finished.connect(self.finished)
  6. print "Opening file"
  7. self.f = QFile("/home/divius/test.tbz2")
  8. self.f.open(QIODevice.ReadOnly)
  9. self.request = QNetworkRequest(QUrl(
  10. "ftp://ibdftp:111111@127.0.0.1/test.tbz2"))
  11. print "Putting request"
  12. self.manager.put(self.request, self.f)
  13. print "Executing"
  14. code = self.exec_()
  15. print "Done:", code
  16.  
  17. def finished(self, reply):
  18. print "Finished", reply.error(), reply.error() == QNetworkReply.NoError
  19. self.quit()
To copy to clipboard, switch view to plain text mode 

Still, I get error 201 (QNetworkReply::ContentAccessDenied).

Syslog contains:

May 17 13:55:17 divius-pc wu-ftpd[31399]: connection from localhost [127.0.0.1]
May 17 13:55:17 divius-pc wu-ftpd[31399]: USER ibdftp
May 17 13:55:17 divius-pc wu-ftpd[31399]: PASS password
May 17 13:55:17 divius-pc wu-ftpd[31399]: FTP LOGIN FROM localhost [127.0.0.1], ibdftp
May 17 13:55:17 divius-pc wu-ftpd[31399]: TYPE Image
May 17 13:55:17 divius-pc wu-ftpd[31399]: PASV
May 17 13:55:17 divius-pc wu-ftpd[31399]: ALLO 10723805
May 17 13:55:17 divius-pc wu-ftpd[31399]: STOR /test.tbz2
May 17 13:55:18 divius-pc wu-ftpd[31399]: FTP session closed

Tested with wu-ftpd, proftpd and simple ftpd.

Any ideas?