1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fix import file extension check

This commit is contained in:
Hillel Coren 2017-06-28 20:14:23 +03:00
parent cff5342a02
commit ee42bed5f3

View File

@ -35,7 +35,7 @@ class ImportController extends BaseController
if ($request->hasFile($fileName)) {
$file = $request->file($fileName);
$destinationPath = env('FILE_IMPORT_PATH') ?: storage_path() . '/import';
$extension = $file->getClientOriginalExtension();
$extension = strtolower($file->getClientOriginalExtension());
if ($source === IMPORT_CSV) {
if ($extension != 'csv') {