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:
parent
cff5342a02
commit
ee42bed5f3
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user