Upload path fix

This commit is contained in:
David Kocik 2024-05-16 19:14:14 +02:00
parent 2c09c034b3
commit 9a5fee2d19
2 changed files with 3 additions and 3 deletions

View File

@ -6092,7 +6092,7 @@ void Plater::connect_gcode()
upload_job.upload_data.set_ready = set_ready;
upload_job.upload_data.position = position;
upload_job.upload_data.wait_until = wait_until;
upload_job.upload_data.upload_path = filename;
upload_job.upload_data.upload_path = boost::filesystem::path(filename);
p->export_gcode(fs::path(), false, std::move(upload_job));

View File

@ -90,7 +90,7 @@ bool PrusaConnectNew::init_upload(PrintHostUpload upload_data, std::string& out)
const std::string name = get_name();
const std::string file_size = std::to_string(size);
const std::string access_token = GUI::wxGetApp().plater()->get_user_account()->get_access_token();
const std::string upload_path = upload_data.upload_path.generic_string();
//const std::string upload_path = upload_data.upload_path.generic_string();
const std::string upload_filename = upload_data.upload_path.filename().string();
std::string url = GUI::format("%1%/app/users/teams/%2%/uploads", get_host(), m_team_id);
const std::string request_body_json = GUI::format(
@ -103,7 +103,7 @@ bool PrusaConnectNew::init_upload(PrintHostUpload upload_data, std::string& out)
"}"
, upload_filename
, file_size
, upload_data.storage + "/" + upload_path
, upload_data.upload_path.string()
, m_uuid
);