提交 47235727 编写于 作者: A anyueling

修改md文档

Signed-off-by: Nanyueling <anyueling@huawei.com>
上级 f3fafb8a
......@@ -182,12 +182,12 @@ upload(context: BaseContext, config: UploadConfig): Promise&lt;UploadTask&gt;
method: "POST",
files: { filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" },
data: { name: "name123", value: "123" },
}
};
request.upload(globalThis.abilityContext, uploadConfig).then((data) => {
uploadTask = data;
}).catch((err) => {
console.error('Failed to request the upload. Cause: ' + JSON.stringify(err));
})
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册