Skip to content

Commit a7b80a6

Browse files
committed
[Form] added multiple option to file type doc
1 parent 9d4a138 commit a7b80a6

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
| | - `read_only`_ |
@@ -76,6 +78,16 @@ before using it directly.
7678
Read the :doc:`cookbook </cookbook/doctrine/file_uploads>` for an example of
7779
how to manage a file upload associated with a Doctrine entity.
7880

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

0 commit comments

Comments
 (0)