Loading src/Tools/ExcelImporter.php +1 −1 Original line number Diff line number Diff line Loading @@ -53,9 +53,9 @@ class ExcelImporter public function __construct($file, $sheetIndex = 0) { $this->config = container(ConfigInterface::class); $this->fileType = ucfirst($file->getExtension()); $this->rootPath = $this->config->get('server.settings.document_root', BASE_PATH . '/public'); $path = UploadManager::uploadExcelGetRealPath($file); $this->fileType = ucfirst(strtolower(pathinfo($file, PATHINFO_EXTENSION))); $this->reader = IOFactory::createReaderForFile($path)->load($path); $this->filePath = $path; $this->sheet = $this->reader->getSheet($sheetIndex); Loading Loading
src/Tools/ExcelImporter.php +1 −1 Original line number Diff line number Diff line Loading @@ -53,9 +53,9 @@ class ExcelImporter public function __construct($file, $sheetIndex = 0) { $this->config = container(ConfigInterface::class); $this->fileType = ucfirst($file->getExtension()); $this->rootPath = $this->config->get('server.settings.document_root', BASE_PATH . '/public'); $path = UploadManager::uploadExcelGetRealPath($file); $this->fileType = ucfirst(strtolower(pathinfo($file, PATHINFO_EXTENSION))); $this->reader = IOFactory::createReaderForFile($path)->load($path); $this->filePath = $path; $this->sheet = $this->reader->getSheet($sheetIndex); Loading