From b77152d13cd8498f8013ba43c1e6be0968b45576 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 6 Mar 2023 11:21:22 +0100 Subject: [PATCH] Fix list rendering for UploadFormField --- docs/php/api/form_builder/form_fields.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/php/api/form_builder/form_fields.md b/docs/php/api/form_builder/form_fields.md index 65efaf62..1864a97b 100644 --- a/docs/php/api/form_builder/form_fields.md +++ b/docs/php/api/form_builder/form_fields.md @@ -308,7 +308,8 @@ The default label of instances of this class is `wcf.tagging.tags` and their def `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. -The field supports additional settings: +The field supports additional settings: + - `imageOnly($imageOnly = true)` and `isImageOnly()` can be used to ensure that the uploaded files are only images. - `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. -- 2.20.1