Need to add `application/csv` to the list of valid CSV mime types
This commit is contained in:
parent
6e6c68e7b3
commit
e3b9b0d29c
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue