API changed: material_profile_name instead of file_name

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-18 15:15:37 +02:00
parent c9d53cbbde
commit 8bd6fe7c2b
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -105,7 +105,7 @@ class UploadMaterialsJob(Job):
request_metadata = {
"data": {
"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.
"origin": "cura" # Some identifier against hackers intercepting this upload request, apparently.
}