admin-post.php results on white screen after form submission

The problem was:

if ($_FILES) {}

Can someone explain this to me? The wp_redirect() is outside of this if statement so why wouldn’t it redirect? Is it because that if statement was still firing but ran into an error as no files were being uploaded?

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