8000 fix(FileUpload): Addition on multiple files · symfony/symfony-docs@c563c37 · GitHub
[go: up one dir, main page]

Skip to content

Commit c563c37

Browse files
Guikingonejaviereguiluz
authored andcommitted
fix(FileUpload): Addition on multiple files
1 parent 81e2b73 commit c563c37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,10 @@ their type::
749749
// uploads a file
750750
$form['photo']->upload('/path/to/lucas.jpg');
751751

752+
// In the case of a multiple file upload
753+
$form['my_form[field][O]']->upload('/path/to/lucas.jpg');
754+
$form['my_form[field][1]']->upload('/path/to/lucas.jpg');
755+
752756
.. tip::
753757

754758
If you purposefully want to select "invalid" select/radio values, see

0 commit comments

Comments
 (0)
0