$ snap download foliate --edge
$ snapcraft push-metadata foliate_82.snap
Pushing metadata from 'foliate_82.snap'
Received 415: 'The icon "icon.svg" to be of type "text/plain". Only "image/jpeg, image/png, image/svg+xml" are allowed.'
Why is this SVG file seen as text/plain instead of image/svg+xml?
@store - can someone look at this? This error is not coming from the review-tools. Locally, file for Ubuntu 16.04, 18.04 and 20.04 all show this as svg. Perhaps the tool on the release of Ubuntu on which this check is being performed is misdetecting this?
This message does NOT come from the tools, it’s a basic store-side MIME type check in the metadata API endpoint.
What’s happening here is apparently snapcraft using the wrong mime type in the HTTP request, bears looking at how snapcraft determines type of metadata files it’s going to upload, but a proper bug on Launchpad will make it easier to involve the appropriate projects.
If better wording for the error is suggested, we can implement that as well I concur it reads weird.