wx.chooseMessageFile为什么拉不起本地文件目录?开发者工具能拉起本地文件目录,小程序上面拉不起本地文件目录。这个是什么原因?
wx.chooseMessageFile为什么拉不起本地文件目录?Why can't wx.chooseMessageFile pull the local file directory?
wx.chooseMessageFile为什么拉不起本地文件目录?wx.chooseMessageFile为什么拉不起本地文件目录?开发者工具能拉起本地文件目录,小程序上面拉不起本地文件目录。这个是什么原因?
wx. Why can't choosemessagefile pull up the local file directory? The developer tool can pull up the local file directory, but the applet cannot pull up the local file directory. What's the reason for this?
回答:
1、本地文件先发送到微信聊天里,再调用这个接口读。
这又不是获取本地文件目录的 api。这是获取微信聊天里的文件的api。
没有获取本地目录的api
请查看:https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.readFile.html