The wrong binding was being used for the file name, originally the value used for the file name was:
((isset($_FILES["image"]))? preg_replace('/^.*\./', '', $_FILES["image"]["name"]) :"") //file extension binding
Instead it should be this:
$_FILES["imageName"]["name"] //this is the file field binding