diff --git a/code/controllers/CMSFileAddController.php b/code/controllers/CMSFileAddController.php index aa8239f6..fc056b0a 100644 --- a/code/controllers/CMSFileAddController.php +++ b/code/controllers/CMSFileAddController.php @@ -73,9 +73,13 @@ class CMSFileAddController extends LeftAndMain { } $form = new Form( - $this, - 'getEditForm', - new FieldList($uploadField, new HiddenField('ID')), + $this, + 'getEditForm', + new FieldList( + $uploadField, + new LiteralField('AllowedExtensions', sprintf('
Allowed extensions: %s
', implode(', ', $uploadField->getValidator()->getAllowedExtensions()))), + new HiddenField('ID') + ), new FieldList() ); $form->addExtraClass('center cms-edit-form ' . $this->BaseCSSClasses()); @@ -121,4 +125,4 @@ class CMSFileAddController extends LeftAndMain { return $items; } -} \ No newline at end of file +}