mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 11:12:01 +08:00
Upload path fix
This commit is contained in:
parent
2c09c034b3
commit
9a5fee2d19
@ -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));
|
||||
|
||||
|
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user