File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ form type.
2323| | - `mimeTypes `_ |
2424| | - `maxSizeMessage `_ |
2525| | - `mimeTypesMessage `_ |
26+ | | - `disallowEmptyMessage `_ |
2627| | - `notFoundMessage `_ |
2728| | - `notReadableMessage `_ |
2829| | - `uploadIniSizeErrorMessage `_ |
@@ -194,6 +195,18 @@ mimeTypesMessage
194195The message displayed if the mime type of the file is not a valid mime type
195196per the `mimeTypes `_ option.
196197
198+ disallowEmptyMessage
199+ ~~~~~~~~~~~~~~~~~~~~
200+
201+ .. versionadded :: 2.6
202+ The ``disallowEmptyMessage `` option was introduced in Symfony 2.6. Prior to 2.6,
203+ if the user uploaded an empty file, no validation error occurred.
204+
205+ **type **: ``string `` **default **: ``An empty file is not allowed. ``
206+
207+ This constraint checks if the uploaded file is empty (i.e. 0 bytes). If it is,
208+ this message is displayed.
209+
197210notFoundMessage
198211~~~~~~~~~~~~~~~
199212
You can’t perform that action at this time.
0 commit comments