Fix upload from stdin, add test