diff --git a/zh-cn/application-dev/reference/apis/js-apis-request.md b/zh-cn/application-dev/reference/apis/js-apis-request.md index 9ae7180508b632302331dedc7cec38a90bcd8dba..31d80be61ea3adb0d1cffbb2ac63ea6461e94ea4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -752,7 +752,7 @@ remove(callback: AsyncCallback<boolean>): void | -------- | -------- | -------- | -------- | | filename | string | 是 | multipart提交时,请求头中的文件名。 | | name | string | 是 | multipart提交时,表单项目的名称,缺省为file。 | -| uri | string | 是 | 文件的本地存储路径。
支持“dataability”和“internal”两种协议类型,但“internal”仅支持临时目录,示例:
dataability:///com.domainname.dataability.persondata/person/10/file.txt
internal://cache/path/to/file.txt | +| uri | string | 是 | 文件的本地存储路径。
仅支持“internal”协议类型,“internal://cache/”为必填字段,示例:
internal://cache/path/to/file.txt | | type | string | 是 | 文件的内容类型,默认根据文件名或路径的后缀获取。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-request.md b/zh-cn/application-dev/reference/apis/js-apis-system-request.md index a0af5a2680c52ec2d2cd60badd5b0249d41c41de..3a4ed680a7c4d605e145d12908fc386739368802 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-request.md @@ -89,11 +89,11 @@ upload(options: UploadRequestOptions): void **系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Upload。 - | 名称 | 类型 | 说明 | - | -------- | -------- | -------- | - | code | number | 服务器返回的HTTP状态码。 | - | data | string | 服务器返回的内容。根据返回头内容中的type决定该值的类型。 | - | headers | Object | 服务器返回的返回头内容。 | + | 名称 | 类型 | 必填 | 说明 | + | -------- | -------- | -------- | -------- | + | code | number | 是 | 服务器返回的HTTP状态码。 | + | data | string | 是 | 服务器返回的内容。根据返回头内容中的type决定该值的类型。 | + | headers | Object | 是 | 服务器返回的返回头内容。 | ## RequestFile @@ -189,9 +189,9 @@ download(options: DownloadRequestOptions): void **系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Download。 - | 名称 | 类型 | 说明 | - | -------- | -------- | -------- | - | token | string | 表示下载的token,获取下载状态的依据。 | + | 名称 | 类型 | 必填 | 说明 | + | -------- | -------- | -------- | -------- | + | token | string | 是 | 表示下载的token,获取下载状态的依据。 | ## request.onDownloadComplete @@ -254,6 +254,6 @@ onDownloadComplete(options: OnDownloadCompleteOptions): void **系统能力**: 以下各项对应的系统能力均为SystemCapability.MiscServices.Download。 - | 名称 | 类型 | 说明 | - | -------- | -------- | -------- | - | uri | string | 表示下载文件的uri。 | \ No newline at end of file + | 名称 | 类型 | 必填 | 说明 | + | -------- | -------- | -------- | -------- | + | uri | string | 是 | 表示下载文件的uri。 | \ No newline at end of file