QFile *fichero=new QFile("C://a/prueba.txt",this);
if (fichero->open(QIODevice::ReadWrite)){
QUrl direccion("ftp://pi:raspberry@192.168.1.130/home/pi/proyecto/prueba.txt");
QNetworkAccessManager *nman=new QNetworkAccessManager();
connect(nman,SIGNAL(finished(QNetworkReply*)),this,SLOT(terminareq(QNetworkReply*)));
QNetworkRequest req;
req.setUrl(direccion);
nman->put(req,fichero);
fichero->close();
}
When I put the file i only have a empty file in my server. What’s the problem here??? I’m so worried with this!!!!
PD: when i capture de qnetworkreply data is an Unknow error
↧