File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 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.
99+-------------+---------------------------------------------------------------------+
1010| Rendered as | ``input `` ``file `` field |
1111+-------------+---------------------------------------------------------------------+
12+ | Overridden | - `compound `_ |
13+ | Options | - `data_class `_ |
14+ | | - `empty_data `_ |
15+ +-------------+---------------------------------------------------------------------+
1216| Inherited | - `disabled `_ |
1317| options | - `empty_data `_ |
1418| | - `error_bubbling `_ |
@@ -24,6 +28,26 @@ The ``file`` type represents a file input in your form.
2428| Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FileType ` |
2529+-------------+---------------------------------------------------------------------+
2630
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+
2751Basic Usage
2852-----------
2953
You can’t perform that action at this time.
0 commit comments