mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:39:03 +08:00
API changed: material_profile_name instead of file_name
Contributes to issue CURA-8609.
This commit is contained in:
parent
c9d53cbbde
commit
8bd6fe7c2b
@ -105,7 +105,7 @@ class UploadMaterialsJob(Job):
|
|||||||
request_metadata = {
|
request_metadata = {
|
||||||
"data": {
|
"data": {
|
||||||
"file_size": file_size,
|
"file_size": file_size,
|
||||||
"file_name": "cura.umm", # File name can be anything as long as it's .umm. It's not used by anyone.
|
"material_profile_name": "cura.umm", # File name can be anything as long as it's .umm. It's not used by anyone.
|
||||||
"content_type": "application/zip", # This endpoint won't receive files of different MIME types.
|
"content_type": "application/zip", # This endpoint won't receive files of different MIME types.
|
||||||
"origin": "cura" # Some identifier against hackers intercepting this upload request, apparently.
|
"origin": "cura" # Some identifier against hackers intercepting this upload request, apparently.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user