I am trying to upload a PNG file to the repository, using the SlingPostServlet. The problem I am encountering is that the field jcr:mimeType on the automatically created node ends up being "image/x-png", which is causing me a lot of trouble downstream because "x-" indicates a non-standard MIME type. Is this expected? Where does the "x-" come from? Referencing the documentation at
https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html * jcr:mimeType -- The MIME type from the original file submission (if contained in the file body part) or derived from the original file name Even if I provide a file name of "whatever.png" I still get a MIME type of "image/x-png", so this doesn't work. I'm not sure I understand how to put the MIME type into my POST in order to set it explicitly. How can I work around this issue? As a point of interest I am almost certain that I was getting the correct type a few months ago. I haven't been able to determine what change, if any, introduced this issue. Thanks!
