diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php index 44e80d9..649c1c3 100644 --- a/src/helper/FormHelper.php +++ b/src/helper/FormHelper.php @@ -690,7 +690,7 @@ public static function editor($name = 'container', $type = 1, $options = [], $va public static function upload($name = 'avatar', $formData = '', $options = [], $value = '') { if (!isset($options['type'])) $options['type'] = 'radio'; - if (!isset($options['mime'])) $options['mime'] = 'image'; + if (!isset($options['mime'])) $options['mime'] = 'images'; if (!isset($options['num'])) $options['num'] = 1; if (isset($options['num']) && $options['num'] == '*') $options['num'] = 100; if (!isset($options['path'])) $options['path'] = 'upload'; //上传路劲