think-extend think-uploader
Thinkphp5.1 FileUpload Library
myxland/think-uploader
Thinkphp5.1 FileUpload Library
- Monday, January 15, 2018
- by myxland
- Repository
- 1 Watchers
- 0 Stars
- 32 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 256 % Grown
Thinkphp5.1 上传类
安装
composer require myxland/think-uploader:dev-master
php think uploader:config
用法
<?php
use myxland\uploader\Upload;
$upload = new Upload();
/**
* 参数:
* 1、上传类型 [image, video, file]等,需要在uploader.php中定义,参照'default'
* 2、上传的字段名,即:form里的name
* 3、前缀,用于云存储,文件夹分割
* 4、文件名
*/
$result = $upload->upload();
if (!$result) {
$this->error($upload->getError());
}
dev-master
9999999-dev
Thinkphp5.1 FileUpload Library
Sources
Download
Apache-2.0
The Requires
by
HWJ