I am having trouble uploading an icon to an app. The icon file exists and I have rights to it. Other API calls work normally to the app... I can even update the version and description. I have tried with jpg and png. The original jpg was downloaded directly from Apple based on the url in the App Store json for the app. I've also tried different locations for the icon file.
Everything I do gives me this error:
<html>
<head>
<title>Status page</title>
</head>
<body style="font-family: sans-serif;">
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Conflict</p>
<p>Unable to complete file upload. No file found for the upload.</p>
<p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
Here's the command I'm using:
curl -k -u ${JSSUSER}:${JSSPASS} -X POST https://jamf.domain.com:8443/JSSResource/fileuploads/mobiledeviceapplicationsicon/id/${APPID} -F name=@"/tmp/icon.png"