little error checking on file upload