rewrote http file upload stream parser