i am using a form to upload images with the name of thier product ID and it works perfectly on my localhost but when i try to add or update a product throu my hosted site the image upload does't get uploaded, the code working on localhost is :
if(isset($_POST['variete']) === true)
{
$newname = $id.".jpg";
$location = '/img/products_img/';
move_uploaded_file($_FILES['img']['tmp_name'],$location.$newname);
}