[CB-2293] Fix typo bufferSize->bytesRead.

Also adds a log statement to print out amount uploaded when an
IOException is thrown.