upload() upload(string $dir = '', string $from = '', mixed $savekey = null) : string|\think\response\Json 保存附件 Parameters string $dir 附件存放的目录 string $from 来源 mixed $savekey Returns string|\think\response\Json —
merge() merge(string $chunkid, int $chunkcount, string $filename, mixed $dir, mixed $from) : \app\common\library\attachment|\think\Model 合并分片文件 Parameters string $chunkid int $chunkcount string $filename mixed $dir mixed $from Throws \app\common\exception\UploadException Returns \app\common\library\attachment|\think\Model —
chunk() chunk(mixed $chunkid, mixed $chunkindex, mixed $chunkcount, mixed $chunkfilesize = null, mixed $chunkfilename = null, mixed $direct = false) : mixed 分片上传 Parameters mixed $chunkid mixed $chunkindex mixed $chunkcount mixed $chunkfilesize mixed $chunkfilename mixed $direct Returns mixed —
getSavekey() getSavekey(mixed $dir, mixed $savekey = null, mixed $filename = null, mixed $md5 = null) : mixed Parameters mixed $dir mixed $savekey mixed $filename mixed $md5 Returns mixed —