From 89b9c3195d751671a2df27f69398077b444c49e1 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 17 Apr 2023 16:00:07 +0800 Subject: [PATCH] docs(network-file): arguments update --- docs/api/request/network-file.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/request/network-file.md b/docs/api/request/network-file.md index 2eb75fb52..60868e097 100644 --- a/docs/api/request/network-file.md +++ b/docs/api/request/network-file.md @@ -19,7 +19,7 @@ |filePath|String|是(files和filePath选其一)|要上传文件资源的路径。|| |name|String|是|文件对应的 key , 开发者在服务器端通过这个 key 可以获取到文件二进制内容|| |header|Object|否|HTTP 请求 Header, header 中不能设置 Referer。|| -|timeout|Number|否|超时时间,单位 ms|H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序、支付宝小程序、字节小程序| +|timeout|Number|否|超时时间,单位 ms|H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序、支付宝小程序、字节小程序、快手小程序| |formData|Object|否|HTTP 请求中其他额外的 form data|| |success|Function|否|接口调用成功的回调函数|| |fail|Function|否|接口调用失败的回调函数|| @@ -152,8 +152,8 @@ uni.chooseImage({ |:-|:-|:-|:-|:-| |url|String|是|下载资源的 url| | |header|Object|否|HTTP 请求 Header, header 中不能设置 Referer。| | -|timeout|Number|否|超时时间,单位 ms|H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序、支付宝小程序、字节小程序| -|filePath|string|否|指定文件下载后存储的路径 (本地路径)|微信小程序(IOS小程序保存到相册需要添加此字段才可以正常保存)、QQ小程序、支付宝小程序、百度小程序、字节小程序、飞书小程序| +|timeout|Number|否|超时时间,单位 ms|H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序、支付宝小程序、字节小程序、快手小程序| +|filePath|string|否|指定文件下载后存储的路径 (本地路径)|小程序支持(IOS小程序保存到相册需要添加此字段才可以正常保存)| |success|Function|否|下载成功后以 tempFilePath 的形式传给页面,res = {tempFilePath: '文件的临时路径'}| | |fail|Function|否|接口调用失败的回调函数| | |complete|Function|否|接口调用结束的回调函数(调用成功、失败都会执行)| | -- GitLab