front-end: WeChat MiniProrgram.
API: GraphQL
function: uploadFiles
前端: 原生微信小程序
后端API: GraphQL
功能: 文件上传
微信小程序用GraphQL上传文件不能直接用graphQL语句控制, 要用到 wx.uploadFile.
需要把graphQL语句写到 formData 中去来让后端识别.
function.js 这个文件夹中实现了一个 选择图片 后 上传到后端的功能. 可以根据具体情况重新封装或调用.
-
Notifications
You must be signed in to change notification settings - Fork 0
front-end: WeChat MiniProrgram API: GraphQL function: uploadFiles 前端: 原生微信小程序 后端API: GraphQL 功能: 文件上传
License
linhongye/WeChat-MiniProrgram-GraphQL-uploadFiles
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
front-end: WeChat MiniProrgram API: GraphQL function: uploadFiles 前端: 原生微信小程序 后端API: GraphQL 功能: 文件上传
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published