wx.downloadFile下载DOC文件其后缀被改成MSWORD
- 当前 Bug 的表现(可附上截图) 使用wx.downloadFile(OBJECT)下载DOC文件到本地后,发现其后缀被改成MSWORD,从而造成文件用wx.openDocument(OBJECT)无法打开 [图片] - 预期表现 正常打开预览 - 复现路径 - 提供一个最简复现 Demo wx.downloadFile({ url: fileUrl, success: function (res) { var filePath = res.tempFilePath wx.openDocument({ filePath: filePath, success: function (res) { console.log('打开文档成功') }, fail: function (res) { wx.showToast({ title: '文档打开失败', image: app.globalData.wxToastImg, duration: app.globalData.duration }); } }) }, fail: function (res) { wx.showToast({ title: '文档读取失败', image: app.globalData.wxToastImg, duration: app.globalData.duration }); } })