php - Magento Uploaded custom image not showing at frontend -


i have added new image field in register form, edit form editing in core magento files. image uploading admin section during add new customer , front end when customer registers own account.

uploaded image storing in database. getting problem showing image @ front end. showing image @ frontend take path of media folder image exists , used in image src in customer account. failed load image.

pls give suggestion how can show uploaded customer image @ front end in customer account detail.

$mediapath = str_replace('\\','/', mage::getbasedir('media').ds.'customer'.ds);// media path $imagepath = substr($this->htmlescape($this->getcustomer()->getcustomerimage()),1);// image path <img src="<?php   echo $mediapath.$imagepath;?>" /> //pass full url path of image  

i using code showing image.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -