$value) {             //debugPrint($value);             if (!empty($value['name'])) {                 $target = $path . basename($value['name']);                 $extension = $value["type"];                 if ($value['size'] < $maxsize) {                     if (in_array($extension, $allowedType)) {                         if (move_uploaded_file($value['tmp_name'], $target)) {                             $filena...."/> Codxplore Multiple file uploading php mysql

Codxplore.com

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


$path = "testUpload/";
        $maxsize = 2000000;
        $allowedType = array("image/jpg", "image/jpeg", "image/gif", "image/png");
        foreach ($_FILES as $key => $value) {
            //debugPrint($value);
            if (!empty($value['name'])) {
                $target = $path . basename($value['name']);
                $extension = $value["type"];
                if ($value['size'] < $maxsize) {
                    if (in_array($extension, $allowedType)) {
                        if (move_uploaded_file($value['tmp_name'], $target)) {
                            $filename = basename($value['name']);
                        }
                    }
                } else {
                    echo 'File size limit problem';
                }
            }
        }

Tags :

Views : 575

Subscribe Us


Follow Us