change server to use multiparty streaming api instead of file api