mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Fix bad mimetype when importing csv from a windows computer
This commit is contained in:
parent
b12738073b
commit
cafe210f69
2 changed files with 15 additions and 2 deletions
|
@ -302,7 +302,18 @@ namespace controllers\publics;
|
|||
break;
|
||||
|
||||
default:
|
||||
$invalid_type = true;
|
||||
if ($read_file['extension'] === 'csv')
|
||||
{
|
||||
$result = $this->internal_contact->import_csv($id_user, $read_file['content']);
|
||||
}
|
||||
elseif ($read_file['extension'] === 'json')
|
||||
{
|
||||
$result = $this->internal_contact->import_json($id_user, $read_file['content']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$invalid_type = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($invalid_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue