-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
What is the expected behavior?
CSV file should be readable even if the mime type of the file doesn't match.
What is the current behavior?
When I try to read a CSV file PhpSpreadsheet was unable to read it cause canRead function returns false.
I am getting "text/x-fortran" as a mime type for my CSV file.
What are the steps to reproduce?
You can find CSV file here.
Possible solution to the problem.
$type = mime_content_type($pFilename); |
I suggest you should not rely on this function to test the file. I removed the mime type check and it was able to read the file successfully with "," as a Delimiter.
Which versions of PhpSpreadsheet are affected?
PhpSpreadsheet 1.2.0
abunch, Gabe-IncentFit and medigeek
Metadata
Metadata
Assignees
Labels
No labels