* Fix the bug of upload file.

This commit is contained in:
xieqiyu
2024-01-19 14:31:10 +08:00
parent 4f6493bff3
commit 7ee49704d9
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -53,6 +53,9 @@ class upload extends wg
$this->setProp('exceededCountHint', sprintf($lang->file->errorFileCount, $this->prop('limitCount')));
}
$name = $this->prop('name');
if($this->prop('multiple') && strpos($name, '[]') === false) $this->setProp('name', $name . '[]');
$otherProps = $this->getRestProps();
return zui::upload(inherit($this), set('_props', $otherProps));
}
+1
View File
@@ -44,6 +44,7 @@ $fields->field('stage')
->multiple();
$fields->field('scriptFile')
->multiple(false)
->width('full')
->label($lang->testcase->autoScript)
->className('autoScript')