Questions tagged [mime-types]
The mime-types tag has no usage guidance.
7
questions
0
votes
0
answers
14
views
Undefined array key "width" in wp-admin/includes/image.php error when publishing post or page
When publishing a post or page that includes trusted SVG files in the content, WordPress spits out the errors Undefined array key "width" in wp-admin/includes/image.php and Undefined array ...
0
votes
0
answers
10
views
Search Filter by mime type not working in pre_get_posts
I'm trying to create a search option for users to display only PDF attachment posts. The following works to display all attachments:
function CustomSearchFilter($query) {
if( (! is_admin() ) &&...
1
vote
1
answer
270
views
Wrong mime types served
I have a brand new server install, debian 6.1.0.10, wordpress latest version, all packages up to date. Transferred all content and database across from an old server. The pages load OK, but none of ...
1
vote
0
answers
76
views
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 ...
1
vote
0
answers
59
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( ...
0
votes
0
answers
760
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 ...
0
votes
1
answer
1k
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 ...