$file_parts['extensions'] typo fix

$file_parts['extensions'] => $file_parts['extension']