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 6bc673c + a061f16 commit 5f6ab84Copy full SHA for 5f6ab84
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