But there’s more. $_FILES[$image_fieldname] is itself an array, with information
about the file uploaded, and any errors that might have occurred in the process.
One of those pieces of information is $_FILES[$image_fieldname]['error']. This field
returns a number: 0 for “Everything went OK,” and a number other than zero if there
was a problem. The text in the array indicates what each non-zero number means