Example code uses new upload API.