0

I've just upgraded magento from 2.4.0 to 2.4.7, but now when I upload image into media gallery so, image not showing on frontend but working fine on backend.
https://i.imgur.com/MM3wSxc.png
https://i.imgur.com/kyyNDDY.png
Does anyone know how to fix this?

2

1 Answer 1

0

This is caused by wrong file permission. So try to execute the following commands:

sudo find . -type f -exec chmod 664 {} \;

sudo find . -type d -exec chmod 775 {} \;

sudo find var pub/static pub/media app/etc -type f -exec chmod g+w {} \;

sudo find var pub/static pub/media app/etc -type d -exec chmod g+ws {} \;

sudo chmod u+x bin/magento
1
  • i also tried above solution but that didn't work for me... Commented May 28 at 11:01

Your Answer

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

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