在帮助与文档中,断点续传使用存在问题,具体问题如下。
在OSS C-SDK开发包中有一下程序
[font='YaHei Consolas Hybrid', Consolas, 'Meiryo UI', 'Malgun Gothic', 'Segoe UI', 'Trebuchet MS', Helvetica, monospace, monospace]void resumable_upload()
[font='YaHei Consolas Hybrid', Consolas, 'Meiryo UI', 'Malgun Gothic', 'Segoe UI', 'Trebuchet MS', Helvetica, monospace, monospace]{
[font='YaHei Consolas Hybrid', Consolas, 'Meiryo UI', 'Malgun Gothic', 'Segoe UI', 'Trebuchet MS', Helvetica, monospace, monospace] ....//省略
- [backcolor=transparent] s [backcolor=transparent]=[backcolor=transparent] oss_resumable_upload_file[backcolor=transparent]([backcolor=transparent]options[backcolor=transparent],[backcolor=transparent] [backcolor=transparent]&[backcolor=transparent]bucket[backcolor=transparent],[backcolor=transparent] [backcolor=transparent]&[backcolor=transparent]object[backcolor=transparent],[backcolor=transparent] [backcolor=transparent]&[backcolor=transparent]filename[backcolor=transparent],[backcolor=transparent] headers[backcolor=transparent],[backcolor=transparent] NULL[backcolor=transparent],[backcolor=transparent]
- clt_params, NULL, &resp_headers, &resp_body);
- if (aos_status_is_ok(s)) {
- [backcolor=transparent] printf[backcolor=transparent]([backcolor=transparent]"upload succeeded\n"[backcolor=transparent]);
- } else {
- [backcolor=transparent] printf[backcolor=transparent]([backcolor=transparent]"upload failed\n"[backcolor=transparent]);
- }
}
断点续传一个20M的数据,上传失败
[font='YaHei Consolas Hybrid', Consolas, 'Meiryo UI', 'Malgun Gothic', 'Segoe UI', 'Trebuchet MS', Helvetica, monospace, monospace]upload failed
断点续传一个5M的数据,可以上传成功
[font='YaHei Consolas Hybrid', Consolas, 'Meiryo UI', 'Malgun Gothic', 'Segoe UI', 'Trebuchet MS', Helvetica, monospace, monospace]upload succeeded
为什么会失败?
谢谢!!!