Need to add `application/csv` to the list of valid CSV mime types

This commit is contained in:
MarkBaker 2020-10-09 14:57:45 +02:00
parent 6e6c68e7b3
commit e3b9b0d29c
2 changed files with 1 additions and 2 deletions

View File

@ -522,8 +522,8 @@ class Csv extends BaseReader
// Attempt to guess mimetype
$type = mime_content_type($pFilename);
var_dump($type);
$supportedTypes = [
'application/csv',
'text/csv',
'text/plain',
'inode/x-empty',

View File

@ -153,7 +153,6 @@ class CsvEnclosureTest extends Functional\AbstractFunctional
$writer->save($filename);
$filedata = file_get_contents($filename);
$filedata = preg_replace('/\\r/', '', $filedata);
var_dump($filedata);
$reader = new CsvReader();
$reader->setDelimiter($delimiter);
$reader->setEnclosure($enclosure);