Add some logging around the API request handling.
Fix (and use) the chained reader.
Fix the upload API return value.