Fixed issue with upload from a network stream