mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #1151 from creative-commoners/pulls/5.12/wrong-max-file-size
FIX MAX_FILE_SIZE of the last EditableFileField
This commit is contained in:
commit
7e18097b0a
@ -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__);
|
||||||
|
Loading…
Reference in New Issue
Block a user