保存文件到本地

最近更新时间:2024-06-06 11:27:32

我的收藏

接口描述

downloadFile(param: DownloadFileCfg): Promise<void>
支持版本:MAC、WIN、ANDROID、IOS >= 2.19.0

代码示例

wemeet.media.downloadFile({
fileName: 'xxx',
contentType: 'docx',
url: 'https://ww4.sinaimg.cn/large/e014fe3bgw1f9616k2peqj20g60j6763.docx',
})
.catch(err => {
console.error('downloadFile failed', err);
})

参数说明

param:DownloadFileCfg 需要保存的文件信息 Returns Promise<void>