diff --git a/~dev_rating/application/classes/FileParser.php b/~dev_rating/application/classes/FileParser.php index e881ca733786ed30985cf5d3c2c84a2374bec486..7c20fa49c9ec96aa18627c30f62e18e5493f3859 100644 --- a/~dev_rating/application/classes/FileParser.php +++ b/~dev_rating/application/classes/FileParser.php @@ -9,15 +9,10 @@ class FileParser * @return array errors */ public static function uploadStudents($filename, $facultyID) { - if (File::mime($filename) != 'text/plain') - return []; - - $file = file_get_contents($filename); - $content = explode("\r\n", self::toUTF8($file)); // DO NOT REPLACE " BY ' THERE! + $content = explode("\r\n", self::toUTF8(file_get_contents($filename))); $i = 0; $errors = []; - foreach ($content as $line) { $line = explode(';', $line); $line = Arr::map('trim', $line);