Single file upload

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

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)