From the var_dump($_FILES) you provided in the comments, it looks like it isn't echoing "testing" (i.e. it's not working) because $_FILE['file'] isn't empty.
from what you provided me:
$_FILES['file'] = array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) }
I'm not completely sure how empty() handles arrays (the documentation just says it will return true for an empty array), but at the very least you'd need to either get rid of $_FILES['file']['error'] (which isn't empty since it's an int(4)), or use empty() to check something like $_FILES['file']['name']
so, using my suggestion, here's how the code would look:
if (empty($_FILES['file']['name'])) {
echo "testing";
$seterror = 1;
returnBack();
}
or (since there might be something wrong with my understanding of PHP arrays), try this:
if(empty($_FILES['file']['name'])) {
echo "testing";
$seterror = 1;
returnBack();
}
var_dump($_FILES)orprint_r($_FILES)