As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [mime-types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers

Why am I getting a Sorry you are not allowed to upload this file type with m4a files?

“GMT20200617-005050_123.m4a” has failed to upload. Sorry, you are not allowed to upload this file type. The files are valid and the other items I've add to this array work properly. Here is my code in ...
jchwebdev's user avatar
  • 763
1 vote
0 answers

'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( ...
Kristián Filo's user avatar
0 votes
0 answers

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 However, when checking the console, I see the error message: Refused to ...
simplifyvof's user avatar
0 votes
1 answer

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 ...
elke_wtf's user avatar
  • 413