uploadFile no longer closes the caller's input stream.

Automatically closing the stream made for shorter, safer code in the
common case.  But in the long run, I think it's better to have whoever
opened the stream be responsible for closing it.