@@ -101,6 +101,6 @@ class Upload extends FormComponent
public function createValidate()
{
- return Elm::validateArr();
+ return $this->props['limit'] == 1 ? Elm::validateStr() : Elm::validateArr();
}
@@ -114,6 +114,6 @@ class Upload extends FormComponent
- return Iview::validateArr();
+ return $this->props['maxLength'] == 1 ? Iview::validateStr() : Iview::validateArr();