Skip to content

Commit

Permalink
chore(taro): 为 uploadFile 添加 H5 新增的文件名参数
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 committed Dec 31, 2019
1 parent bf8edb5 commit c884190
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/taro/types/api/network/upload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ declare namespace Taro {
name: string
/** 开发者服务器地址 */
url: string
/** (仅 H5) 上传的文件名 */
fileName: string
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
complete?: (res: General.CallbackResult) => void
/** 接口调用失败的回调函数 */
Expand Down Expand Up @@ -62,7 +64,7 @@ declare namespace Taro {
totalBytesSent: number
}
}

/** 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 `content-type` 为 `multipart/form-data`。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。
* @supported weapp
* @example
Expand Down

0 comments on commit c884190

Please sign in to comment.