EXPIRED_SECONDS
EXPIRED_SECONDS = 180
upload(string $bucket, string $srcPath, string $dstPath, string $bizAttr = null, $sliceSize = null, string $insertOnly = null) : \qcloudcos\[type]
上传文件,自动判断文件大小,如果小于20M则使用普通文件上传,大于20M则使用分片上传
string | $bucket | bucket名称 |
string | $srcPath | 本地文件路径 |
string | $dstPath | 上传的文件路径 |
string | $bizAttr | 文件属性 |
$sliceSize | ||
string | $insertOnly | 同名文件是否覆盖 |
[description]
copyFile( $bucket, $srcFpath, $dstFpath, $overwrite = false) : array|\qcloudcos\mixed.
Copy a file.
$bucket | bucket name. |
|
$srcFpath | source file path. |
|
$dstFpath | destination file path. |
|
$overwrite | if the destination location is occupied, overwrite it or not? |
moveFile( $bucket, $srcFpath, $dstFpath, $overwrite = false) : array|\qcloudcos\mixed.
Move a file.
$bucket | bucket name. |
|
$srcFpath | source file path. |
|
$dstFpath | destination file path. |
|
$overwrite | if the destination location is occupied, overwrite it or not? |
uploadFile(string $bucket, string $srcPath, string $dstPath, string $bizAttr = null, integer $insertOnly = null) : \qcloudcos\[type]
内部方法, 上传文件
string | $bucket | bucket名称 |
string | $srcPath | 本地文件路径 |
string | $dstPath | 上传的文件路径 |
string | $bizAttr | 文件属性 |
integer | $insertOnly | 是否覆盖同名文件:0 覆盖,1:不覆盖 |
[description]
uploadBySlicing(string $bucket, $srcFpath, $dstFpath, string $bizAttr = null, string $sliceSize = null, integer $insertOnly = null) : \qcloudcos\[type]
内部方法,上传文件
string | $bucket | bucket名称 |
$srcFpath | ||
$dstFpath | ||
string | $bizAttr | 文件属性 |
string | $sliceSize | 分片大小 |
integer | $insertOnly | 是否覆盖同名文件:0 覆盖,1:不覆盖 |
[description]