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 81b10b7 commit 475ae23Copy full SHA for 475ae23
app/code/Magento/Ui/Component/Form/Element/DataType/Media/Image.php
@@ -64,7 +64,10 @@ public function getComponentName()
64
public function prepare()
65
{
66
// dynamically set max file size based on php ini config if not present in XML
67
- $maxFileSize = $this->getConfiguration()['maxFileSize'] ?? $this->fileSize->getMaxFileSize();
+ $maxFileSize = min(array_filter([
68
+ $this->getConfiguration()['maxFileSize'] ?? null,
69
+ $this->fileSize->getMaxFileSize()
70
+ ]));
71
72
$data = array_replace_recursive(
73
$this->getData(),
0 commit comments