QIODevice::read (QTcpSocket, "QFtpDTP Passive state socket"): device not open
Unsolved
General and Desktop
-
download
https://code.qt.io/cgit/qt/qtftp.git/file = Q_NULLPTR; QString localFileName = this->localDir + fileName; //![3] // if ( !QFile::exists(localFileName)) { emit state( tr("There is not a file called %1 in " "the current directory.") .arg(localFileName)); emit putOk(); return; } //![4] file = new QFile(localFileName); if (!file->open(QIODevice::ReadOnly)) { emit state( tr("Unable to read the file %1: %2.") .arg(localFileName).arg(file->errorString())); delete file; emit putOk(); return; } QString remoteFile; remoteFile = fileName; ftp->put(file, remoteFile);
i find that the file is successly uploaded .
-
Is there any actual question or problem here?