$avatar = Params::getParam('pAvatar');
if(Params::getParam('pAvatar') <> '') {
$user = User::newInstance()->findByPrimaryKey($userId);
if($user['s_profile_img'] <> '') {
@unlink(osc_content_path() . 'uploads/user-images/' . $user['s_profile_img']);
}
osc_base64_to_image(Params::getParam('pAvatar'));
}
Asked
Active
Viewed 41 times
0

mxmissile
- 11,464
- 3
- 53
- 79

VishnuPrasad
- 1
- 1