Skip to content

Commit 6bdcdb1

Browse files
committed
Merge pull request #3354 from bamarni/patch-6
[Form] added multiple option to file type doc
2 parents d31465b + bf98517 commit 6bdcdb1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reference/forms/types/file.rst

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ The ``file`` type represents a file input in your form.
99
+-------------+---------------------------------------------------------------------+
1010
| Rendered as | ``input`` ``file`` field |
1111
+-------------+---------------------------------------------------------------------+
12+
| Options | - `multiple`_ |
13+
+-------------+---------------------------------------------------------------------+
1214
| Inherited | - `required`_ |
1315
| options | - `label`_ |
1416
| | - `label_attr`_ |
@@ -77,6 +79,16 @@ before using it directly.
7779
Read the :doc:`cookbook </cookbook/doctrine/file_uploads>` for an example of
7880
how to manage a file upload associated with a Doctrine entity.
7981

82+
Field Options
83+
-------------
84+
85+
multiple
86+
~~~~~~~~
87+
88+
**type**: ``Boolean`` **default**: ``false``
89+
90+
When set to true, the user will be able to upload multiple files at the same time.
91+
8092
Inherited options
8193
-----------------
8294

0 commit comments

Comments
 (0)