Skip to content

Commit b77152d

Browse files
committed
Fix list rendering for UploadFormField
1 parent d16dc6b commit b77152d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/php/api/form_builder/form_fields.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ The default label of instances of this class is `wcf.tagging.tags` and their def
308308

309309
`UploadFormField` objects register a [custom form field data processor](validation_data.md#customformfielddataprocessor) to add the array of `wcf\system\file\upload\UploadFile\UploadFile` into the `$parameters` array directly using the object property as the array key. Also it registers the removed files as an array of `wcf\system\file\upload\UploadFile\UploadFile` into the `$parameters` array directly using the object property with the suffix `_removedFiles` as the array key.
310310

311-
The field supports additional settings:
311+
The field supports additional settings:
312+
312313
- `imageOnly($imageOnly = true)` and `isImageOnly()` can be used to ensure that the uploaded files are only images.
313314
- `allowSvgImage($allowSvgImages = true)` and `svgImageAllowed()` can be used to allow SVG images, if the image only mode is enabled (otherwise, the method will throw an exception). By default, SVG images are not allowed.
314315

0 commit comments

Comments
 (0)