diff --git a/app/Http/Controllers/Api/ImportController.php b/app/Http/Controllers/Api/ImportController.php index 2f88e3f474..0e0ecc3671 100644 --- a/app/Http/Controllers/Api/ImportController.php +++ b/app/Http/Controllers/Api/ImportController.php @@ -49,10 +49,11 @@ class ImportController extends Controller if (!in_array($file->getMimeType(), array( 'application/vnd.ms-excel', 'text/csv', + 'application/csv', 'text/plain', 'text/comma-separated-values', 'text/tsv'))) { - $results['error']='File type must be CSV'; + $results['error']='File type must be CSV. Uploaded file is '.$file->getMimeType(); return response()->json(Helper::formatStandardApiResponse('error', null, $results['error']), 500); }