mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX MAX_FILE_SIZE of the last EditableFileField
This commit is contained in:
parent
6826489295
commit
63c6326a63
@ -201,7 +201,7 @@ class EditableFileField extends EditableFormField
|
||||
$field = FileField::create($this->Name, $this->Title ?: false)
|
||||
->setFieldHolderTemplate(EditableFormField::class . '_holder')
|
||||
->setTemplate(__CLASS__)
|
||||
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms'));
|
||||
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms', false));
|
||||
|
||||
$field->setFieldHolderTemplate(EditableFormField::class . '_holder')
|
||||
->setTemplate(__CLASS__);
|
||||
|
Loading…
Reference in New Issue
Block a user