Wiec tak to jest kod
{ $destination = './upload/' . $new_name; $path = $_FILES['ikonka_produktu_torby']['tmp_name']; switch ($_FILES["ikonka_produktu_torby"]) { case "jpg": case "jpeg": $iko = MakeIco ($destination.$extension, 880, 480); imagejpeg ($iko, $destination.$extension, 100); break; case "gif": $iko = MakeIco ($destination.$extension, 880, 480); imagegif ($iko, $destination.$extension); break; case "png": $iko = MakeIco ($destination.$extension, 880, 480); imagepng ($iko, $destination.$extension); break; } return $new_name; }
a i błąd mam taki:
: Illegal string offset 'tmp_name' in 13
a linia 13 to:
move_uploaded_file($_FILES['ikonka_produktu_torby']['tmp_name'], $destination);
a var_dump pokazuje mi
string(3) "tmp"
a folder tmp jest
można jakąś pomoc