Skip to content

Commit

Permalink
Add text/html to the types detected by extension
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Aug 31, 2018
1 parent 8f2941c commit c0a97f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function getSource(array $fileData)
$mediaType = $finfo->file($fileData['tmp_name']);

// Manage an exception for a very common format, undetected by fileinfo.
if ($mediaType === 'text/plain') {
if ($mediaType === 'text/plain' || $mediaType === 'text/html') {
$extensions = [
'csv' => 'text/csv',
'tab' => 'text/tab-separated-values',
Expand Down

0 comments on commit c0a97f5

Please sign in to comment.