Because the postFormWithParts function is public and it needs these parts that can (or should) only be created with this function.
Contributes to issue CURA-5034.
The printer firmware won't add them currently so we're sending these profiles to their doom. However a later firmware update might fix this so we can make older Cura versions send the profiles as well so that it is forward compatible.
Contributes to issue CURA-5034.
If you have multiple materials with the same GUID (in the case of custom profiles) then we want to send only the material with the highest version number and only the base material.
Contributes to issue CURA-5034.
When we re-serialize them, the XML file will not be exactly the same so the signature will fail to match. We need to send the original bytes.
This changes the behaviour: It now sends all non-default files instead of all files that were loaded fully.
Contributes to issue CURA-5034.