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 54ddd62 + 5f6ab84 commit b69bbb0Copy full SHA for b69bbb0
controller/upload_file.rst
@@ -335,7 +335,7 @@ Now you're ready to use this service in the controller::
335
336
if ($form->isSubmitted() && $form->isValid()) {
337
/** @var UploadedFile $brochureFile */
338
- $brochureFile = $form['brochure']->getData();
+ $brochureFile = $form->get('brochure')->getData();
339
if ($brochureFile) {
340
$brochureFileName = $fileUploader->upload($brochureFile);
341
$product->setBrochureFilename($brochureFileName);
0 commit comments