Give better error messages in the example upload.php

Many people just need a quick uploader, and use the embedded example code. I actually thought the code was wrong, which it wasn't, but found my real error after actually printing out the error code that PHP provides.

This patch exposes that error code (along with a helpful message).