Inline upload

PR for review. Not built.
I think it's very dangerous to rely on text. Should we move to status code + custom internal error code? (if status code is not enough)