未验证 提交 bb899a25 编写于 作者: O openharmony_ci 提交者: Gitee

!16334 上传下载资料修改 3.2-Release

Merge pull request !16334 from ann_lesley/OpenHarmony-3.2-Release
......@@ -16,26 +16,9 @@ import request from '@ohos.request';
## 限制与约束
在开发FA模型下的应用程序时, 默认支持https,如果要支持http,需要在config.json里增加network标签,属性标识 "cleartextTraffic": true。即:
```js
var config = {
"deviceConfig": {
"default": {
"network": {
"cleartextTraffic": true
}
//...
}
}
}
```
在开发stage模型下的应用程序时,不涉及属性标识 "cleartextTraffic"。
下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败,可通过[on('fail')<sup>7+</sup>)](#onfail7)查看失败原因。
上传目前仅支持HTTP请求,不支持HTTPS。
## 常量
**需要权限**:ohos.permission.INTERNET
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册