vcico / uploader
There is no license information available for the latest version (v0.0.1) of this package.
v0.0.1
2021-10-13 06:26 UTC
Requires
- php: ^7.3
This package is not auto-updated.
Last update: 2025-06-19 22:12:46 UTC
README
todo
'maxSize' => -1, // 上传文件的最大值
'supportMulti' => true, // 是否支持多文件上传
'allowExts' => [], // 允许上传的文件后缀 留空不作后缀检查
'allowTypes' => [], // 允许上传的文件类型 留空不做检查
'thumb' => false, // 使用对上传图片进行缩略图处理
'imageClassPath' => 'ORG.Util.Image', // 图库类包路径
'thumbMaxWidth' => '', // 缩略图最大宽度
'thumbMaxHeight' => '', // 缩略图最大高度
'thumbPrefix' => 'thumb_', // 缩略图前缀
'thumbSuffix' => '',
'thumbPath' => '', // 缩略图保存路径
'thumbFile' => '', // 缩略图文件名
'thumbExt' => '', // 缩略图扩展名
'thumbRemoveOrigin' => false, // 是否移除原图
'thumbType' => 1, // 缩略图生成方式 1 按设置大小截取 0 按原图等比例缩略
'zipImages' => false, // 压缩图片文件上传
'autoSub' => false, // 启用子目录保存文件
'subType' => 'hash', // 子目录创建方式 可以使用hash date custom
'subDir' => '', // 子目录名称 subType为custom方式后有效
'dateFormat' => 'Ymd',
'hashLevel' => 1, // hash的目录层次
'savePath' => '', // 上传文件保存路径
'autoCheck' => true, // 是否自动检查附件
'uploadReplace' => false, // 存在同名是否覆盖
'saveRule' => 'uniqid', // 上传文件命名规则
'hashType' => 'md5_file', // 上传文件Hash规则函数名