* Delete sheet2.
This commit is contained in:
@@ -109,8 +109,12 @@ class port extends control
|
||||
$extension = $file['extension'];
|
||||
|
||||
$fileName = $this->file->savePath . $shortName;
|
||||
|
||||
move_uploaded_file($file['tmpname'], $fileName);
|
||||
|
||||
if($extension == 'xlsx' or $extension == 'xls') $this->port->cutFile($fileName);
|
||||
die;
|
||||
|
||||
$phpExcel = $this->app->loadClass('phpexcel');
|
||||
$phpReader = new PHPExcel_Reader_Excel2007();
|
||||
if(!$phpReader->canRead($fileName))
|
||||
|
||||
Reference in New Issue
Block a user