oops - I broke zero length uploads (thx @zlite)