- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
public function upload($deleteTempFile = true)
{
$tmp = $_FILES['UploadExcelFileInn']['tmp_name']['fileExcel'];
$file = '/home/user/public/documents/FileExcel.' . $this->fileExcel->extension;
if ($deleteTempFile) {
return move_uploaded_file($_FILES['UploadExcelFileInn']['tmp_name']['fileExcel'], $file);
} elseif (is_uploaded_file($tmp)) {
return copy($tmp, $file);
}
return false;
}
Комментарии (0) RSS
Добавить комментарий