File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ The ``file`` type represents a file input in your form.
9
9
+-------------+---------------------------------------------------------------------+
10
10
| Rendered as | ``input `` ``file `` field |
11
11
+-------------+---------------------------------------------------------------------+
12
+ | Overridden | - `compound `_ |
13
+ | Options | - `data_class `_ |
14
+ | | - `empty_data `_ |
15
+ +-------------+---------------------------------------------------------------------+
12
16
| Inherited | - `disabled `_ |
13
17
| options | - `empty_data `_ |
14
18
| | - `error_bubbling `_ |
@@ -24,6 +28,26 @@ The ``file`` type represents a file input in your form.
24
28
| Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FileType ` |
25
29
+-------------+---------------------------------------------------------------------+
26
30
31
+ Overridden Options
32
+ ------------------
33
+
34
+ .. include :: /reference/forms/types/options/compound_type.rst.inc
35
+
36
+ data_class
37
+ ~~~~~~~~~~
38
+
39
+ **default **: :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ File `
40
+
41
+ This option sets the appropriate file-realted data mapper to be used by the type.
42
+
43
+ empty_data
44
+ ~~~~~~~~~~
45
+
46
+ **default **: ``null ``
47
+
48
+ This option is set to ``null `` automatically because it is not used by the
49
+ renderd field widget.
50
+
27
51
Basic Usage
28
52
-----------
29
53
You can’t perform that action at this time.
0 commit comments