[FileSize]¶
Validation error codes¶
- Error code:
1505303626
- Error message:
You must enter an instance of \TYPO3\CMS\Extbase\Domain\Model\FileReference or \TYPO3\CMS\Core\Resource\File.
- Error code:
1505305752
- Error message:
You must select a file that is larger than %s in size.
- Error code:
1505305753
- Error message:
You must select a file that is no larger than %s.
Properties¶
implementationClassName¶
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.FileSize.implementationClassName
- Data type
- string
- Needed by
- Frontend
- Mandatory
- Yes
- Default value (for prototype 'standard')
FileSize: implementationClassName: TYPO3\CMS\Form\Mvc\Validation\FileSizeValidator
Copied!- Good to know
- Description
-
Classname which implements the validator.
options.minimum¶
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.FileSize.options.minimum
- Data type
- string
- Needed by
- Frontend
- Mandatory
- Yes
- Default value (for prototype 'standard')
- undefined
- Description
- The minimum filesize to accept. Use the format
<size>B|K|M|G
. For example:10M
means 10 Megabytes.
options.maximum¶
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.FileSize.options.maximum
- Data type
- string
- Needed by
- Frontend
- Mandatory
- Yes
- Default value (for prototype 'standard')
- undefined
- Description
- The maximum filesize to accept. Use the format
<size>B|K|M|G
. For example:10M
means 10 Megabytes.
formEditor.iconIdentifier¶
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.FileSize.formEditor.iconIdentifier
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value (for prototype 'standard')
FileSize: formEditor: iconIdentifier: form-validator label: formEditor.elements.FileUploadMixin.validators.FileSize.editor.header.label
Copied!
- Description
-
An icon identifier which must be registered through the
\TYPO3\CMS\Core\Imaging\IconRegistry
. This icon will be shown within the - "Inspector [CollectionElementHeaderEditor]" if the validator is selected.
formEditor.label¶
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.FileSize.formEditor.label
- Data type
- string
- Needed by
- Backend (form editor)
- Mandatory
- Yes
- Default value (for prototype 'standard')
FileSize: formEditor: iconIdentifier: form-validator label: formEditor.elements.FileUploadMixin.validators.FileSize.editor.header.label
Copied!- Good to know
- Description
-
This label will be shown within the - "Inspector [CollectionElementHeaderEditor]" if the validator is selected.
formEditor.predefinedDefaults¶
- Option path
- prototypes.<prototypeIdentifier>.validatorsDefinition.FileSize.formEditor.predefinedDefaults
- Data type
- array
- Needed by
- Backend (form editor)
- Mandatory
- No
- Default value (for prototype 'standard')
FileSize: formEditor: predefinedDefaults: options: minimum: '0B' maximum: '10M'
Copied!- Description
-
Defines predefined defaults for validator options which are prefilled, if the validator is added to a form element.