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 536f365 commit de6a50cCopy full SHA for de6a50c
app/code/Magento/Catalog/Controller/Adminhtml/Product/Gallery/Upload.php
@@ -94,7 +94,8 @@ public function execute()
94
throw new LocalizedException(__('Disallowed File Type.'));
95
}
96
97
- $imageAdapter = $this->adapterFactory->create(); $uploader->addValidateCallback('catalog_product_image', $imageAdapter, 'validateUploadFile');
+ $imageAdapter = $this->adapterFactory->create();
98
+ $uploader->addValidateCallback('catalog_product_image', $imageAdapter, 'validateUploadFile');
99
$uploader->setAllowRenameFiles(true);
100
$uploader->setFilesDispersion(true);
101
$mediaDirectory = $this->filesystem->getDirectoryRead(DirectoryList::MEDIA);
0 commit comments