接口描述
接口名:media.downloadFile
描述:选择需要保存的文件,将文件保存到本地。
支持的客户端:Android、iOS、Mac、Windows。
支持的版本:2.19.0 版本以上。
输入参数
DownloadFileCfg:需要保存的文件信息。
参数名称 | 参数类型 | 参数描述 |
fileName | String | 文件名。 |
contentType | String | 文件类型。 |
url | String | 文件链接。 |
代码示例
wemeet.media.downloadFile({fileName: 'xxx',contentType: 'docx',url: 'https://ww4.sinaimg.cn/large/e014fe3bgw1f9616k2peqj20g60j6763.docx',}).catch(err => {console.error('downloadFile failed', err);})