diff --git a/docs/en/reference/uploadfield.md b/docs/en/reference/uploadfield.md index 429cf347c..204086d56 100644 --- a/docs/en/reference/uploadfield.md +++ b/docs/en/reference/uploadfield.md @@ -146,6 +146,14 @@ to known file categories. // 'doc','docx','txt','rtf','xls','xlsx','pages', 'ppt','pptx','pps','csv','pdf' $uploadField->setAllowedFileCategories('image', 'doc'); +`AllowedExtensions` can also be set globally via the [YAML configuration](/topics/configuration#setting-configuration-via-yaml-files), for example you may add the following into your mysite/_config/config.yml: + + :::yaml + File: + allowed_extensions: + - 7zip + - xzip +