@linuxhombr3 The 5.0.2 update is supposed to be released tomorrow the 19th of December 2018, not sure if they will also push a 4.9.10 release. Thanks for the temp solution.
5.0.1 has the same issue as far as I’ve been able to tell.
I’m assuming the fix is on the way. I found the workaround/patch they’re working on above as well as the link to the discussion:
https://core.trac.wordpress.org/ticket/45615#comment:14
Other than that, we’re all just waiting to see what the deal is here… this is a monumentally large production BUG and frankly, I’m quite surprised they would let this happen. They’re much better than that.
@pmupress — please let the group know what you did / your results as well kindly!
Anyone know what file we need to add the add_filter patch option to as shown in the GIT patch? Thanks much. Just looking for how to apply the patch. I just added it to functions.php but i’m still seeing a CSV upload error inside of media when i drop in a CSV file for testing.
wondering the same @linuxhombr3 ! the other thread is so much back and forth… I just need to know when the FIX will occur, long overdue at this point…. we are using a short term workaround.
The combination of both of those solutions worked correctly for me:
@ functions.php
## Disables MIME Types Check ##
function wph_disable_mime_check($data,$file,$filename,$mimes){
$wp_filetype = wp_check_filetype($filename,$mimes);
$ext = $wp_filetype['ext'] ;
$type = $wp_filetype['type'] ;
$proper_filename = $data['proper_filename'] ;
return compact('ext','type','proper_filename');
}
add_filter('wp_check_filetype_and_ext','wph_disable_mime_check',10,4);
@ wp-config.php
## Allows uploading different types of file, such as .csv ##
define('ALLOW_UNFILTERED_UPLOADS', true);