From 3e62ab777e71ead6c7c41799a91390c5d35555ab Mon Sep 17 00:00:00 2001 From: Eduardo Kraus Date: Sat, 26 Sep 2026 17:06:20 -0300 Subject: [PATCH] =?UTF-8?q?Known=20issue=20=E2=80=94=20MDL-84230?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- versioned_docs/version-5.2/apis/subsystems/form/usage/files.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/versioned_docs/version-5.2/apis/subsystems/form/usage/files.md b/versioned_docs/version-5.2/apis/subsystems/form/usage/files.md index d01130cca..ef683752f 100644 --- a/versioned_docs/version-5.2/apis/subsystems/form/usage/files.md +++ b/versioned_docs/version-5.2/apis/subsystems/form/usage/files.md @@ -202,6 +202,8 @@ if ($data = $mform->get_data()) { } ``` +> **Known issue — MDL-84230:** there is a reported Moodle bug involving an optional `filemanager` when the `maxfiles` option is defined. A field created, for example, with `'maxfiles' => 3` may report that no more than three files can be uploaded even when the field is optional and no file was submitted. `maxfiles` should only limit the number of files when the user actually uses the field; it should not make the element required or trigger an error for an empty `filemanager`. See [MDL-84230](https://moodle.atlassian.net/browse/MDL-84230). + ### Editors {/* #editors */} Another common place to handle files is within an HTML editor, such as TinyMCE.