Handle server exceptions better. Prevent wrap ClientException. Added stream length to post file