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();
}
Upload CSV result file does not work. Any clue?
]]>When i import the CSV nothing happens. I think it is because i do not have the CSV formatted correctly.
Do you have a sample CSV or are there any tricks?
]]>