微信小程序上传文件:
wx.uploadFile({ //上传
name: 'file',
php后台接收:
move_uploaded_file($_FILES['file']['tmp_name']
也为file,非image
目标文件目录如在本目录下,无需加"/"前缀
微信小程序上传文件:
wx.uploadFile({ //上传
name: 'file',
php后台接收:
move_uploaded_file($_FILES['file']['tmp_name']
也为file,非image
目标文件目录如在本目录下,无需加"/"前缀