mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #223 from adrexia/7883-File-Uploading-Notifications
BUG: File Uploading Notifications (fixes #7883)
This commit is contained in:
commit
600c73086b
@ -74,20 +74,13 @@ class CMSFileAddController extends LeftAndMain {
|
||||
|
||||
$exts = $uploadField->getValidator()->getAllowedExtensions();
|
||||
asort($exts);
|
||||
$uploadField->Extensions = implode(', ', $exts);
|
||||
|
||||
$form = new Form(
|
||||
$this,
|
||||
'getEditForm',
|
||||
new FieldList(
|
||||
$uploadField,
|
||||
new LiteralField(
|
||||
'AllowedExtensions',
|
||||
sprintf(
|
||||
'<p>%s: %s</p>',
|
||||
_t('AssetAdmin.ALLOWEDEXTS', 'Allowed extensions'),
|
||||
implode('<em>, </em>', $exts)
|
||||
)
|
||||
),
|
||||
$uploadField,
|
||||
new HiddenField('ID')
|
||||
),
|
||||
new FieldList()
|
||||
|
Loading…
Reference in New Issue
Block a user