better errors on upload/text