Questions tagged [mime-types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
9 views

'upload_mimes' filter seems to be restricting viewing/downloading as well

I am trying to allow administrators to upload SVG files using upload_mimes filter. function custom_upload_mimes( $mimes ) { // Allow additional mime types for administrators if( ...
user avatar
0 votes
0 answers
215 views

Refused to execute as script because "X-Content-Type: nosniff" was given and its Content-Type is not a script MIME type

We added an external script in the body tag of our (dev) website https://zonnebeke.reclamebureau-simplify.be/zonnebeke2022/. However, when checking the console, I see the error message: Refused to ...
user avatar
0 votes
0 answers
135 views

How to add custom media library mime icons?

Can't seem to get wp_mime_type_icon filter to work so I can use custom image for icons in the Media Library for documents. @birgire answered this post with the following code, but it does not seem to ...
user avatar
0 votes
1 answer
329 views

Upload Custom Mime Types in WordPress (SVG, WebP)

I have a plugin I created to allow for us to add additional image types (webp, svg, etc). For some reason it is failing and will not allow me to add svg. Could use an extra set of eyes on this one ...
user avatar
  • 403