diff --git a/client/core/servercontroller.cpp b/client/core/servercontroller.cpp index 398b46b34..6fac14ea4 100644 --- a/client/core/servercontroller.cpp +++ b/client/core/servercontroller.cpp @@ -206,8 +206,14 @@ ErrorCode ServerController::uploadFileToHost(const ServerCredentials &credential localFile.write(data); localFile.close(); +#ifdef Q_OS_WINDOWS + error = m_sshClient.sftpFileCopy(overwriteMode, localFile.fileName().toLocal8Bit().toStdString(), remotePath.toStdString(), + "non_desc"); +#else error = m_sshClient.sftpFileCopy(overwriteMode, localFile.fileName().toStdString(), remotePath.toStdString(), "non_desc"); +#endif + if (error != ErrorCode::NoError) { return error; }