\app\common\library\storage\engineServer

存储引擎抽象类 Class server

Summary

Methods
Properties
Constants
setUploadFile()
setUploadFileByReal()
getFileName()
getFileInfo()
getError()
No public properties found
No constants found
__construct()
upload()
delete()
getRealPath()
$file
$error
$fileName
$fileInfo
$isInternal
N/A
buildSaveName()
No private properties found
N/A

Properties

$file

$file : 

Type

$error

$error : 

Type

$fileName

$fileName : 

Type

$fileInfo

$fileInfo : 

Type

$isInternal

$isInternal : 

Type

Methods

setUploadFile()

setUploadFile(string  $name) 

设置上传的文件信息

Parameters

string $name

Throws

\think\Exception

setUploadFileByReal()

setUploadFileByReal(string  $filePath) 

设置上传的文件信息

Parameters

string $filePath

getFileName()

getFileName() : mixed

返回上传后文件路径

Returns

mixed

getFileInfo()

getFileInfo() : mixed

返回文件信息

Returns

mixed

getError()

getError() : mixed

返回错误信息

Returns

mixed

__construct()

__construct() 

构造函数 Server constructor.

upload()

upload() : mixed

文件上传

Returns

mixed

delete()

delete(  $fileName) : mixed

文件删除

Parameters

$fileName

Returns

mixed

getRealPath()

getRealPath() 

buildSaveName()

buildSaveName() 

生成保存文件名