more verbose error message on file upload