【文件属性】:
文件名称:wx_upfile:微信小程序word, doc文件上传与下载
文件大小:1.66MB
文件格式:ZIP
更新时间:2021-05-31 13:38:42
JavaScript
微信小程序word, doc文件上传与下载
文件上传两种方式
上传当前小程序中下载过的文件
利用wx.chooseMessageFile 调用微信会话页面 选择要上传的文件
文件上传示例代码
微信会话中选择要上传的上传文件
//选择要上传的上传文件
choosefilefun(){
let _that = this;
wx.chooseMessageFile({
count: 10,
type: 'file',
success(res) {
console.log(_that,' :this')
// console.log(res, " :res")
const tempFiles = res.tempFiles
let {upfilelist} = _that.
【文件预览】:
wx_upfile-master
----README.md(5KB)
----wx_static()
--------.gitignore(885B)
--------sitemap.json(191B)
--------app.wxss(775B)
--------project.config.json(684B)
--------app.js(70B)
--------pages()
--------img()
--------app.json(325B)
--------config.js(96B)
----pic()
--------IMG_3638.GIF(1.57MB)
--------pic01.jpg(48KB)
--------youjiaoxueyuan.png(161KB)
----node()
--------nodemon.json(309B)
--------static()
--------app.js(265B)
--------package.json(554B)
--------upload()
--------route()