How to delete files from ftp?
-
@QUrl uploadurl("ftp://ftp.aaa.com/httpdocs/img/1.jpg");
uploadurl.setUserName("username");
uploadurl.setPassword("password");
uploadurl.setPort(21);
QNetworkRequest upload(uploadurl);
QNetworkAccessManager *uploadman = new QNetworkAccessManager(this);
QNetworkReply *rep = uploadman->deleteResource(upload);
qDebug() << rep->errorString();
@result “Unknown error”
help!
-
Hi,
The doc from deleteResource says that its currently only for HTTP