Single file upload

You can just grab the first file in the $_FILES array.

if ($_FILES) {
return $FILES[0];
}