Better file upload error handling