Skip to content

Commit

Permalink
Merge pull request techjoomla#316 from ankush-maherwal/10023
Browse files Browse the repository at this point in the history
Task #154510 feat: Import Records from the frontend
  • Loading branch information
ankush-maherwal committed Dec 24, 2019
2 parents c68c3d6 + ad9a1b9 commit 64d81ce
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 64d81ce

Please sign in to comment.