• I found the problem:

    In result.php the line if ( ‘text/csv’ != $file[‘type’] ) is always true because csv mime type could be differente from ‘text/csv’. I modified this way:

    $mimes = array(‘application/vnd.ms-excel’,’text/plain’,’text/csv’,’text/tsv’);
    if(! in_array($file[‘type’],$mimes)) {
    //if ( ‘text/csv’ != $file[‘type’] ) {
    wp_send_json_error();
    }

The topic ‘CSV upload error – resolved’ is closed to new replies.