8000 Merge branch '4.4' into 5.0 · symfony/symfony-docs@a061f16 · GitHub
[go: up one dir, main page]

Skip to content

Commit a061f16

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: 🎨 Improved consistency
2 parents d08501f + 3bb08b4 commit a061f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Now you're ready to use this service in the controller::
335335

336336
if ($form->isSubmitted() && $form->isValid()) {
337337
/** @var UploadedFile $brochureFile */
338-
$brochureFile = $form['brochure']->getData();
338+
$brochureFile = $form->get('brochure')->getData();
339339
if ($brochureFile) {
340340
$brochureFileName = $fileUploader->upload($brochureFile);
341341
$product->setBrochureFilename($brochureFileName);

0 commit comments

Comments
 (0)
0