Check the contents of a palette file to determine the type
Since we save all palettes except for gpl in kpl format, files saved by Krita can have the wrong suffix, so check for the mimetype.
Since we save all palettes except for gpl in kpl format, files saved by Krita can have the wrong suffix, so check for the mimetype.