I have big problem with Internet Explorer even 11, in my code im using move_uploaded_file function. And this function save blank file on server with 0KB however, its working on another browser like chrome, firefox etc. and the function save full file. i have multipart enctype in form and permission 777 in directory.
Can someone help me what i should to do to save this file with success?
if (!empty($_FILES['INPUT']['name'])) {
if ($_FILES["INPUT"]["type"] == "image/png"
|| $_FILES["INPUT"]["type"] == "image/jpg"
|| $_FILES["INPUT"]["type"] == "image/jpeg"
|| $_FILES["INPUT"]["type"] == "image/JPG"
|| $_FILES["INPUT"]["type"] == "image/JPEG"
|| $_FILES["INPUT"]["type"] == "image/PNG"
|| $_FILES["INPUT"]["type"] == "image/pjpeg"
|| $_FILES["INPUT"]["type"] == "image/x-png") {
$img = $_FILES['INPUT']['name'].".png";
$target_file = '../assets/directory/'.$img;
move_uploaded_file($_FILES['INPUT']['tmp_name'], $target_file);
return "/assets/directory/".$_FILES['INPUT']['name'].".png";
}
}