Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Interfaces/ObjectStorage/ObjectStorageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ quint64 ObjectStorageManager::saveFile(
//save to tblUploadFiles
quint64 UploadedFileID = 0;
quint16 QueueRowsCount = 0;
QString FullFileName;
// QString FullFileName;

try {
QVariantMap SpOutVars = _uploadFiles.callSP(APICALLBOOM_PARAM,
Expand All @@ -163,7 +163,9 @@ quint64 ObjectStorageManager::saveFile(
//move from temp to persistance location
// QString FileUUID = QUuid::createUuid().toString(QUuid::Id128);
QString oStoredFileName = SpOutVars.value("oStoredFileName").toString();
FullFileName = QString("%1/%2").arg(FullTempPath).arg(oStoredFileName);
QByteArray FullFileName = QFile::encodeName(QString("%1/%2").arg(FullTempPath).arg(oStoredFileName));

TargomanDebug(5) << "moving file [" << _file.TempName << "] to [" << FullFileName << "]";
QFile::rename(_file.TempName, FullFileName);

//read and write by all
Expand Down
4 changes: 2 additions & 2 deletions Modules/Ticketing/functionalTest/testTicketing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private slots:
{ "body", "this is ticket body" },
},
{
{ "file_1", "../../README.md" },
{ "file_1", "../../temp/معماری-تانوما.jpg" },
}
);

Expand All @@ -183,7 +183,7 @@ private slots:
QTest::qFail(exp.what(), __FILE__, __LINE__);
}
}

private:
void Ticket_newFeedback_1() {
QT_TRY {
QVariant Result = callUserAPI(
Expand Down