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
|
// Attempt to guess mimetype
|
||||||
$type = mime_content_type($pFilename);
|
$type = mime_content_type($pFilename);
|
||||||
var_dump($type);
|
|
||||||
$supportedTypes = [
|
$supportedTypes = [
|
||||||
|
'application/csv',
|
||||||
'text/csv',
|
'text/csv',
|
||||||
'text/plain',
|
'text/plain',
|
||||||
'inode/x-empty',
|
'inode/x-empty',
|
||||||
|
|
|
@ -153,7 +153,6 @@ class CsvEnclosureTest extends Functional\AbstractFunctional
|
||||||
$writer->save($filename);
|
$writer->save($filename);
|
||||||
$filedata = file_get_contents($filename);
|
$filedata = file_get_contents($filename);
|
||||||
$filedata = preg_replace('/\\r/', '', $filedata);
|
$filedata = preg_replace('/\\r/', '', $filedata);
|
||||||
var_dump($filedata);
|
|
||||||
$reader = new CsvReader();
|
$reader = new CsvReader();
|
||||||
$reader->setDelimiter($delimiter);
|
$reader->setDelimiter($delimiter);
|
||||||
$reader->setEnclosure($enclosure);
|
$reader->setEnclosure($enclosure);
|
||||||
|
|
Loading…
Reference in New Issue