Skip to content

Commit

Permalink
Task #154510 feat: Import Records from the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush-maherwal committed Dec 23, 2019
1 parent decc3ef commit ad9a1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/com_tjucm/site/controllers/items.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function importCsv()
}

// Check if the file is a CSV file
if ($importFile['type'] != "text/csv")
if (!in_array($importFile['type'], array('application/vnd.ms-excel', 'text/plain', 'text/csv', 'text/tsv')))
{
$app->enqueueMessage(Text::_('COM_TJUCM_ITEMS_INVALID_CSV_FILE'), 'error');
$app->redirect(Uri::root() . 'index.php?option=com_tjucm&view=items&layout=importitems&tmpl=component&client=' . $client);
Expand Down

0 comments on commit ad9a1b9

Please sign in to comment.