mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Add content type to file upload
This commit is contained in:
parent
1bcabc6f42
commit
12b3f0088d
2 changed files with 4 additions and 3 deletions
|
@ -375,7 +375,7 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice):
|
|||
# TODO: Multipart upload
|
||||
job_response = JobUploadResponse(**response.get("data"))
|
||||
Logger.log("i", "Print job created successfully: %s", job_response.__dict__)
|
||||
self.put(job_response.upload_url, data = mesh,
|
||||
self.put(job_response.upload_url, data = mesh, content_type = job_response.content_type,
|
||||
on_finished = lambda r: self._onPrintJobUploaded(job_response.job_id, r),
|
||||
on_progress = self._onUploadPrintJobProgress)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue