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.
1 parent 5f8f7b8 commit c2c7daeCopy full SHA for c2c7dae
controller/upload_file.rst
@@ -319,7 +319,7 @@ Now you're ready to use this service in the controller::
319
320
if ($form->isSubmitted() && $form->isValid()) {
321
/** @var UploadedFile $brochureFile */
322
- $brochureFile = $form['brochure']->getData();
+ $brochureFile = $form->get('brochure')->getData();
323
if ($brochureFile) {
324
$brochureFileName = $fileUploader->upload($brochureFile);
325
$product->setBrochureFilename($brochureFileName);
0 commit comments