We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7551c92 + 8e4c857 commit 3bb08b4Copy full SHA for 3bb08b4
controller/upload_file.rst
@@ -337,7 +337,7 @@ Now you're ready to use this service in the controller::
337
338
if ($form->isSubmitted() && $form->isValid()) {
339
/** @var UploadedFile $brochureFile */
340
- $brochureFile = $form['brochure']->getData();
+ $brochureFile = $form->get('brochure')->getData();
341
if ($brochureFile) {
342
$brochureFileName = $fileUploader->upload($brochureFile);
343
$product->setBrochureFilename($brochureFileName);
0 commit comments