Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(csv import): add further supported file types
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Sep 30, 2019
1 parent a82b209 commit 881dc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ispapidpi.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function ispapidpi_output($vars)
} elseif ($_POST['price_class'] == "CSV-FILE") {
//when csv file is slected also in STEP 2
//to check if the file is csv
$type_of_uploaded_file = array('text/csv');
$type_of_uploaded_file = array('text/csv', 'application/vnd.ms-excel', 'text/plain');//linux vs. windows vs. just text
if (isset($_FILES["file"])) {
if (in_array($_FILES["file"]["type"], $type_of_uploaded_file)) {
$smarty->assign('post-file', $_FILES["file"]);
Expand Down

0 comments on commit 881dc56

Please sign in to comment.