FIX MAX_FILE_SIZE of the last EditableFileField

This commit is contained in:
Sabina Talipova 2022-06-01 14:08:00 +12:00
parent 6826489295
commit 63c6326a63

View File

@ -201,7 +201,7 @@ class EditableFileField extends EditableFormField
$field = FileField::create($this->Name, $this->Title ?: false) $field = FileField::create($this->Name, $this->Title ?: false)
->setFieldHolderTemplate(EditableFormField::class . '_holder') ->setFieldHolderTemplate(EditableFormField::class . '_holder')
->setTemplate(__CLASS__) ->setTemplate(__CLASS__)
->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms')); ->setValidator(Injector::inst()->get(Upload_Validator::class . '.userforms', false));
$field->setFieldHolderTemplate(EditableFormField::class . '_holder') $field->setFieldHolderTemplate(EditableFormField::class . '_holder')
->setTemplate(__CLASS__); ->setTemplate(__CLASS__);