增加以源文件名称命名

This commit is contained in:
icret
2022-01-04 06:31:05 +08:00
parent e6cac01eda
commit 811374700d
4 changed files with 17 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ if ($handle->uploaded) {
// 允许上传的mime类型
$handle->allowed = array('image/*');
// 文件命名
$handle->file_new_name_body = imgName();
$handle->file_new_name_body = imgName($handle->file_src_name_body);
// 最大上传限制
//$handle->file_max_sizes = $config['maxSize'];
// 最大宽度