After publishing my Product.php page, Product_Live is updated except for one field

I can see you’re using a variable named $prodfilename but then in the else statement you are using $prodimgurl.

$prodimgurl     = '';