Skip to content

Commit 0379183

Browse files
committed
minor #10803 [TESTING] File upload - Multiple files case (Guikingone)
This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes #10803). Discussion ---------- [TESTING] File upload - Multiple files case Hi everyone, I've noticed that the documentation lack this type of example which can occur many times in a project (especially if you have some CRUD). Thanks for the reviews 😃 Commits ------- c563c37 fix(FileUpload): Addition on multiple files
2 parents 81e2b73 + c563c37 commit 0379183

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)