added better feedback to users when bad files are uploaded. However this still requires a real message, hence a TODO