0

I have upload customer image using ajax.I have upload images jpg,png,jpeg etc extension is working fine.But i have upload pdf extension showing below error

Notice: Trying to access array offset on value of type bool in /var/www/html/vendor/magento/module-eav/Model/Attribute/Data/Image.php on line 34

In database customer image attribute frontend_input is "image" value.

enter image description here

i have frontend_input change into "file" value pdf extension working fine.

So Plesae help.

THANKS.

1 Answer 1

0

If you check the code around the line specified in the error you will see why it doesn't work :)

$allowImageTypes = ['gif', 'jpg', 'jpeg', 'png'];

So basically, you can't upload a PDF and expect it to be treated as an image since this is not allowed file extension.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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