Support » Fixing WordPress » CSV not uploading

  • kparker2213


    as of 4:43. last evening we could upload CSV files fine, we use gravity forms. we have done no updates in our environments, as of today we get an error stating the file type is not allowed.

    any ideas??? we are NOT on 5.0.1 yet we are on 4.9.9

    The page I need help with: [log in to see the link]

Viewing 7 replies - 16 through 22 (of 22 total)
  • @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:

    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.

    Any updates here?

    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.

    Marcelo Diament


    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');

    @ wp-config.php

    ## Allows uploading different types of file, such as .csv ##
    define('ALLOW_UNFILTERED_UPLOADS', true);
Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘CSV not uploading’ is closed to new replies.