File tree 1 file changed +20
-20
lines changed
1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -27,26 +27,6 @@ The ``file`` type represents a file input in your form.
27
27
| Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FileType ` |
28
28
+-------------+---------------------------------------------------------------------+
29
29
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
-
50
30
Basic Usage
51
31
-----------
52
32
@@ -97,6 +77,26 @@ before using it directly.
97
77
Read the :doc: `cookbook </cookbook/doctrine/file_uploads >` for an example
98
78
of how to manage a file upload associated with a Doctrine entity.
99
79
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
+
100
100
Inherited Options
101
101
-----------------
102
102
You can’t perform that action at this time.
0 commit comments