QuestionQ36
VerifiedCustomizing the CatalogAn Adobe Commerce developer is developing a custom gallery extension.
The module uses the Magento\Catalog\Model\ImageUploader class to upload images. The admin controller for custom image uploads is Vendor\CustomGallery\Controller\Adminhtml\Image\Upload.
The images must be stored with basePath and baseTmpPath values different from the defaults. How can the default ImageUploader class be extended and used without impacting other modules that already use it?
Community Discussion