Improved file upload handling

Spend an hour figuring out that my upload_max_filesize directive in PHP was set to 2MB.
Added some improved file upload error handling.