Revision of release v1.3.2
This commit is contained in:
@ -476,6 +476,13 @@ class Csv extends BaseReader
|
||||
|
||||
fclose($this->fileHandle);
|
||||
|
||||
return true;
|
||||
$type = mime_content_type($pFilename);
|
||||
$supportedTypes = [
|
||||
'text/csv',
|
||||
'text/plain',
|
||||
'inode/x-empty',
|
||||
];
|
||||
|
||||
return in_array($type, $supportedTypes, true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user