I am getting somewhere. the file is being uploaded to the temp dir. For some reason it is not being moved to the main dir once the check has passed.
any ideas?PHP Code:
move_uploaded_file($_FILES['Filedata']['tmp_name'], "../../temp/".$_FILES['Filedata']['name']);
$type = exif_imagetype("../../temp/".$_FILES['Filedata']['name']);
if ($type == 1 || $type == 2 || $type == 3) {
rename("../../temp/".$_FILES['Filedata']['name'], "../img/vids/".$_FILES['Filedata']['name']);
} else {
unlink("../../temp/".$_FILES['Filedata']['name']);
}
thanks