PNG format issue in uploading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 04:33 AM
Hi ServiceNow Family,
I have a very unique issue, on my instance png format is allowed. However, when a 24-bit png image is uploaded the system throws the error: File type not permitted or mime type does not match the file content
What is interesting is, if i upload a file type of png which is a 32-bit png, we do not have this issue and the system accepts the solution.
Hence, looking for a help on this case.
Thanks in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 04:50 AM
Hi @Kartik Choumal ,
Alternative, why don't you convert this image online and load it to the supposed format.
I hope that helps
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:09 AM
It crossed my mind but in my situation it is not a good workaround as it will be the end users attaching the images and to control their behaviour would not be a good task to begin with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 04:54 AM
Hi Kartik,
If the above has been checked and the issue still persists, the issue is with MIME type checking. When an application searches for the MIME type of a file, it checks the filename against the MIME information files. If a match for the filename is found, the MIME type associated with the extension or pattern is the MIME type of the file. You can disable this security upload-stop feature by editing the system property 'glide.security.file.mime_type.validation' and setting its Value to 'false'.
Though you can always convert the image using some converter and then upload it. Obviously this would be a temporary solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 11:11 AM
Yes but wouldn't it bring the risk that the deactivation would impact on all the extenstion types?