Loading src/Form/ImportForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ function create_taxonomy($voc_name) { $vocabulary->save(); } // Code for fetch and save csv file. if ($mimetype == "text/plain") { if ($mimetype == "text/plain" || $mimetype == 'application/csv') { if (($handle = fopen($location, "r")) !== FALSE) { // Read all data including title. $data1 = fgetcsv($handle); Loading Loading
src/Form/ImportForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ function create_taxonomy($voc_name) { $vocabulary->save(); } // Code for fetch and save csv file. if ($mimetype == "text/plain") { if ($mimetype == "text/plain" || $mimetype == 'application/csv') { if (($handle = fopen($location, "r")) !== FALSE) { // Read all data including title. $data1 = fgetcsv($handle); Loading