Skip to content

Commit 0820635

Browse files
committed
moving options below basic usage
1 parent f28ef78 commit 0820635

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

reference/forms/types/file.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,6 @@ The ``file`` type represents a file input in your form.
2727
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType` |
2828
+-------------+---------------------------------------------------------------------+
2929

30-
Overridden Options
31-
------------------
32-
33-
.. include:: /reference/forms/types/options/compound_type.rst.inc
34-
35-
data_class
36-
~~~~~~~~~~
37-
38-
**type**: ``string`` **default**: :class:`Symfony\\Component\\HttpFoundation\\File\\File`
39-
40-
This option sets the appropriate file-related data mapper to be used by the type.
41-
42-
empty_data
43-
~~~~~~~~~~
44-
45-
**type**: ``mixed`` **default**: ``null``
46-
47-
This option determines what value the field will return when the submitted
48-
value is empty.
49-
5030
Basic Usage
5131
-----------
5232

@@ -97,6 +77,26 @@ before using it directly.
9777
Read the :doc:`cookbook </cookbook/doctrine/file_uploads>` for an example
9878
of how to manage a file upload associated with a Doctrine entity.
9979

80+
Overridden Options
81+
------------------
82+
83+
.. include:: /reference/forms/types/options/compound_type.rst.inc
84+
85+
data_class
86+
~~~~~~~~~~
87+
88+
**type**: ``string`` **default**: :class:`Symfony\\Component\\HttpFoundation\\File\\File`
89+
90+
This option sets the appropriate file-related data mapper to be used by the type.
91+
92+
empty_data
93+
~~~~~~~~~~
94+
95+
**type**: ``mixed`` **default**: ``null``
96+
97+
This option determines what value the field will return when the submitted
98+
value is empty.
99+
100100
Inherited Options
101101
-----------------
102102

0 commit comments

Comments
 (0)