set content type based on stream using the new single FileHandle creation method