Hello,
I have developed a form which containts to input type files option 1 is for downloadable file and second one is for features image but the problem is that image name is saving into the database but second file is not moving into the database
<input type="file" name="ft_img" style="margin: 0 !important;"/> <input type="file" name="download" style="margin: 0 !important;"/>
$imgname1 = $_FILES["ft_img"]["name"];
$imgtype1 = $_FILES["ft_img"]["type"];
$imgtemp1 = $_FILES["ft_img"]["tmp_name"];
$path1 = "./uploads/".$imgname1;
$download = $_FILES["download"]["name"];
$file_type = $_FILES["download"]["type"];
$file_temp = $_FILES["download"]["tmp_name"];
$file_path1 = "./uploads/".$download;
move_uploaded_file($file_temp, $file_path1);
$title = $_POST["title"];
$descrip = mysqli_real_escape_string($connect, $_POST["descrip"]);
$android = $_POST["android"];
$iphone = $_POST["iphone"];
$catname = $_POST["catname"];
$parent = $_POST["parent"];
$fetch = $_POST["fetch"];
move_uploaded_file($imgtemp1, $path1);