Codxplore.com

Latest news: New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!


$path = "upload/";
        $target = $path . basename($_FILES['file']['name']);

        $allowedType = array("image/jpg", "image/jpeg", "image/gif", "image/png");
        $extension = $_FILES["file"]["type"];

        if (in_array($extension, $allowedType)) {
            if (move_uploaded_file($_FILES['file']['tmp_name'], $target)) {
                $data['image'] = basename($_FILES['file']['name']);
            }
        }

Tags :

Views : 551

Subscribe Us


Follow Us