\app\common\library\storage\engineAliyun

阿里云存储引擎 (OSS) Class Qiniu

Summary

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

Properties

$file

$file : 

Type

$error

$error : 

Type

$fileName

$fileName : 

Type

$fileInfo

$fileInfo : 

Type

$isInternal

$isInternal : 

Type

$config

$config : 

Type

Methods

__construct()

__construct(  $config) 

构造方法 Aliyun constructor.

Parameters

$config

setUploadFile()

setUploadFile(string  $name) 

设置上传的文件信息

Parameters

string $name

Throws

\think\Exception

setUploadFileByReal()

setUploadFileByReal(string  $filePath) 

设置上传的文件信息

Parameters

string $filePath

upload()

upload() : boolean|mixed

执行上传

Returns

boolean|mixed

delete()

delete(  $fileName) : boolean|mixed

删除文件

Parameters

$fileName

Returns

boolean|mixed

getFileName()

getFileName() : mixed

返回文件路径

Returns

mixed

getFileInfo()

getFileInfo() : mixed

返回文件信息

Returns

mixed

getError()

getError() : mixed

返回错误信息

Returns

mixed

getRealPath()

getRealPath() 

buildSaveName()

buildSaveName() 

生成保存文件名