FIX: fix some issue in sending files to external storage through cloud

JIRA: STUDIO-9372 STUDIO-9374 STUDIO-9368
If the printer version does not support uploading, the original protocol
will be used

Change-Id: I3d47ac2567c2c6709a5b983ff1ad552d9a8606d4
(cherry picked from commit b8dde8ae7f4f5883fc163c57bb607a08ecdabf2b)
This commit is contained in:
Kunlong Ma
2025-04-01 14:40:07 +08:00
committed by Noisyfox
parent f3610897c6
commit 4ef27847cd
4 changed files with 45 additions and 37 deletions

View File

@@ -556,6 +556,7 @@ void PrinterFileSystem::Stop(bool quit)
void PrinterFileSystem::SetUploadFile(const std::string &path, const std::string &name, const std::string &select_storage)
{
boost::unique_lock l(m_mutex);
if (!m_upload_file) {
m_upload_file = std::make_unique<UploadFile>();
}