So my image gets uploaded without issues but what is this error I get after image gets uploaded on form submit?
This is the bit of my php:
if(isset($_POST['submit'])){
if($_FILES['file']['name']!='')
{
$tmp_name = $_FILES["file"]["tmp_name"];
$namefile = $_FILES["file"]["name"];
$ext = end(explode(".", $namefile)); //line 16
$fileUpload = move_uploaded_file($tmp_name,"blogUploads\images/".$image_name); //line 17
$image_name=time().".".$ext;
watermark_image($tmp_name,"blogUploads\images/".$image_name);
$img = ''.$image_name.'';
}else{
$img = '';
}
}

$_FILES['file']['name']!=''is not the correct way to check for checkingfileinstead you can use$_FILES['file']['error'] != 4''also for usingendyou need to get theexplodedresult within variable and then need to useend($your_exploded_variable)