I have added custom attribute for profile image upload. Now when i access customer image on front end it shows 404 error and donot access images in this folder /pub/media/customer .

  • check this answer magento.stackexchange.com/a/197737/20064
    – Piyush
    Nov 10, 2017 at 5:05
  • @piyush i am already doing this my question is images in this folders are not accessed.
    – Ashar Riaz
    Nov 10, 2017 at 9:01
  • If it is returning 404 error then it means, your image does not exist at the given path or you may have provided wrong path , you can also check the permission of the directory
    – Piyush
    Nov 10, 2017 at 9:04
  • image is placed in this path. i am able to acceess pub/media/catalog/product images .
    – Ashar Riaz
    Nov 10, 2017 at 9:10
  • but unable to access images in customer folder it shows "The page you requested was not found, and we have a fine guess why." and 404 error when i access them from mobile application.
    – Ashar Riaz
    Nov 10, 2017 at 9:11

3 Answers 3


Just remove .htaccess from pub/media/customer and image start loading at front-end.


I have resolve this issue after configuring htaccess.conf file in server which is placed on this directory of server /opt/bitnami/apps/magento/conf Note : server i am using is bitname server.


I have resloved this issue with


on nginx server after change option on nginx.config.sample on root magento folder.

#location /media/customer/ {
#   deny all;

then reload nginx and restart nginx service. Good luck!

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.