Skip to content

Commit bc6a197

Browse files
committed
fix a bug on uploading excel file for import method
1 parent 832d010 commit bc6a197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controllers/ExportImportController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function import($entity) {
2424

2525
$filePath = null;
2626
if (Input::hasFile('import_file') && Input::file('import_file')->isValid()) {
27-
$filePath = Input::file('import_file')->getRealPath();
27+
$pathTemp = Input::file('import_file')->store('temp');
28+
$filePath = storage_path('app').'/'.$pathTemp;
2829
}
2930

3031
if ($filePath)

0 commit comments

Comments
 (0)