i've created a brand new Magento 2.4.3-p1 installation and using the media gallery i'm getting some errors. The main error is when i'm trying to upload images i always get the error below

enter image description here

One other issue is when i access one folder...sometimes not all the images are displayed. For example, below are 2 prints, from FTP Folder and from media gallery enter image description here enter image description here

Can someone help me understand what is wrong at my end and how to fix this.


1 Answer 1

 $target = $this->_mediaDirectory->getAbsolutePath('catalog/product/product_attachment');
        try {
            $uploader = $this->_fileUploaderFactory->create(
                ['fileId' => 'product_attachment']
            $uploader->setAllowedExtensions(['jpg', 'png' , 'jpeg']);
            $result = $uploader->save($target);
  • thanks...i've managed to fix this...it was a bug in a template that add a FrontEndBuilder that was causing the issue Mar 16, 2022 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.