better error message for bad upload