Commit f14a5679 authored by Kimberley Massey's avatar Kimberley Massey Committed by Ilcho Vuchkov
Browse files

Issue #3255009 by kimberleycgm, vuil: CSVs not detected properly

parent 58b16b83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);