Adding JFIF Mime type to functions.php
-
StackOverflow has a “solution” of code to add to wp-includes/functions.php, and the solution has 7 points, but it doesn’t say where in the functions.php file to insert the code, and when I inserted it, my site broke.
Also, note that the suggested code doesn’t include a closing “>” — intentional?
You need 50 reputation to comment, so I can’t comment there.The answer says:
You need to add the file extension to the accepted array.<?php add_filter('mime_types', 'dd_add_jfif_files'); function dd_add_jfif_files($mimes){ $mimes['jfif'] = "image/jpeg"; return $mimes; }
source:
https://stackoverflow.com/questions/65532649/how-can-we-get-wordpress-to-support-jfif-image-upload
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding JFIF Mime type to functions.php’ is closed to new replies.