开发者社区> 问答> 正文

CompleteMultipartUpload

Complete Multipart Upload
     发送请求的语法时:是否要把准备上传的数据再上传一次?

出现错误:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>MalformedXML</Code>
  <Message>The XML you provided was not well-formed or did not validate against our published schema.</Message>
  <RequestId>5036EE7FACD33B95678AA086</RequestId>
  <HostId>storage.aliyun.com</HostId>
</Error>

展开
收起
hwldetb 2012-08-24 11:03:25 8561 0
2 条回答
写回答
取消 提交回答
  • ReCompleteMultipartUpload
    Complete Multi-upload失败,不需要重传数据。只要把请求的XML格式调整好,再发送一下就可以了
    2012-08-24 15:58:23
    赞同 展开评论 打赏
  • 回楼主hwldetb的帖子

    补充----------->如下

    string soap = "<CompeleteMultipartUpload>";
                            soap  = "<part>";
                            soap  = "<partNumber>";
                            soap  = "1";
                            soap  = "</partNumber>";
                            soap  = "<ETag>";
                            soap  = id;
                            soap  = "</ETag>";
                            soap  = "</part>";
                            soap  = "</CompeleteMultipartUpload>";
                           // 字符转字节
                            byte[] bytes = Encoding.UTF8.GetBytes(soap);
                            Stream writer = request.GetRequestStream();
                            writer.Write(bytes, 0, bytes.Length);

    这样添加有什么错误吗?

    -------------------------

    ReCompleteMultipartUpload
    嗯,解决了,原来我CompleteMultipartUpload 的xml节点 拼写错了
    2012-08-24 11:27:17
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Architecting a Multi-Tenanted 立即下载
In-Flux Limiting for a Multi-T 立即下载
低代码开发师(初级)实战教程 立即下载