So if the error field ($_FILES[$image_fieldname]['error']) is zero, things are great;
just keep going. If it’s non-zero, show an error to the user, and then use the error
code to look up the exact problem in your $php_errors associative array, and hand
it off for view if debugging is on.