8000 Update upload_file.rst · Guikingone/symfony-docs@13908eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 13908eb

Browse files
authored
Update upload_file.rst
1 parent 0b779f9 commit 13908eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller/upload_file.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,13 +444,13 @@ controller.
444444
$entity = $args->getEntity();
445445
446446
if (!$entity instanceof Product) {
447-
return;
447+
return;
448448
}
449449

450450
if ($entity->getBrochure()) {
451-
$fileName = $entity->getBrochure();
451+
$fileName = $entity->getBrochure();
452452
453-
$entity->setBrochure(new File($this->targetPath.'/'.$fileName));
453+
$entity->setBrochure(new File($this->targetPath.'/'.$fileName));
454454
}
455455
}
456456
}

0 commit comments

Comments
 (0)
0