Skip to content

Commit 8e4c857

Browse files
committed
minor #13910 🎨 Improved consistency in Upload Files snippet (skmedix)
This PR was merged into the 3.4 branch. Discussion ---------- 🎨 Improved consistency in Upload Files snippet Commits ------- c2c7dae 🎨 Improved consistency
2 parents 5f8f7b8 + c2c7dae commit 8e4c857

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
@@ -319,7 +319,7 @@ Now you're ready to use this service in the controller::
319319

320320
if ($form->isSubmitted() && $form->isValid()) {
321321
/** @var UploadedFile $brochureFile */
322-
$brochureFile = $form['brochure']->getData();
322+
$brochureFile = $form->get('brochure')->getData();
323323
if ($brochureFile) {
324324
$brochureFileName = $fileUploader->upload($brochureFile);
325325
$product->setBrochureFilename($brochureFileName);

0 commit comments

Comments
 (0)