Skip to content

Commit

Permalink
Fix uploading XLSX files
Browse files Browse the repository at this point in the history
  • Loading branch information
frombetelgeuse committed Jul 8, 2021
1 parent f328475 commit 40f54ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ private ImportOptions buildImportOptions(java.io.File sourceFile, FileBean fileB

private boolean isSpreadsheet(java.io.File file, FileBean fileBean) {
return (fileBean.getDest() != null)
? FilenameUtils.isExtension(fileBean.getDest(), "csv")
: FilenameUtils.isExtension(file.getName(), "csv");
? FilenameUtils.isExtension(fileBean.getDest(), "csv", "xls", "xlsx")
: FilenameUtils.isExtension(file.getName(), "csv", "xls", "xlsx");
}

private boolean isXml(java.io.File file) {
Expand Down

0 comments on commit 40f54ab

Please sign in to comment.