You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a quick research, it seems like the wp_get_image_mime() function isn't reliable. It returns nothing for the SVG file (probably because of the size optimization). However, it works fine for png/jpeg: 'image/jpeg'.
And I checked '_wp_attachment_metadata' meta value, it does have a correct mime type
I'm using the Safe SVG plugin (https://wordpress.org/plugins/safe-svg) v2.2.2 and CF v3.6. For some reason my svg files have an empty 'file_type' meta.
core/Helper/Helper.php
After a quick research, it seems like the wp_get_image_mime() function isn't reliable. It returns nothing for the SVG file (probably because of the size optimization). However, it works fine for png/jpeg: 'image/jpeg'.
And I checked '_wp_attachment_metadata' meta value, it does have a correct mime type
Originally posted by @jorostoyanov in #962 (comment)
The text was updated successfully, but these errors were encountered: