架构函数
UploadFile
__construct
([ $maxSize = ''], [ $allowExts = ''], [ $allowTypes = ''], [ $savePath = UPLOAD_PATH], [ $saveRule = ''])
-
$maxSize
-
$allowExts
-
$allowTypes
-
$savePath
-
$saveRule
获取错误代码信息
void
error
(string $errorNo)
取得最后一次错误信息
string
getErrorMsg
()
取得上传文件的信息
array
getUploadFileInfo
()
上传文件
string
upload
([string $savePath = ''])
-
string
$savePath: 上传文件保存路径