strangest thing happened… I created a webshop in PHP. Everything worked fine, but when we moved the website from our ftp to theirs, we ran into a problem. We aren’t able to upload pictures anymore…
if (file_exists("../productimages/" . $_FILES["picture"]["name"]))
{
$feedback = "<div class=\"voegproducttoefeedback\">Please change name of product<b><big> \"".$_FILES["picture"]["name"] . "\"
</big></b>The name already occurs in the database</div> ";
} else
{
$tmp_name = $_FILES["picture"]["tmp_name"];
$name = $_FILES["picture"]["name"];
move_uploaded_file($tmp_name, "../productimages/$name");
if(file_exists("../productimages/$name")) {
$feedback2 = "succeed";
}
else {
$feedback2 = "failed";
}
if ($product->saveproduct($_DB)) {
$feedback = "<div class=\"voegproducttoefeedback\">Product <b><big>\"".$product->naam."\"</big></b> created with succes</div>";
} else {
$feedback = "<div class=\"voegproducttoefeedback\">Not enough information to create product</div>";
}
}}}?>
Try changing the target directory permissions (../productimages/)