I have done WeChat public account development before, but I have never done an image upload function. WeChat image upload is actually calling the upload interface in jssdk-api.
Friends who do logistics want to use the WeChat public account to scan some QR codes, then take or select album pictures, and then upload them to the server.
Then, I happened to have never done the WeChat official account image upload function before, so I did it simply
Support uploading single and multiple images at the same time! Upload up to 9 images at once!
The effect is as shown in the picture, select the album picture or take a picture, and then upload it to the server,
The picture below is the image saved by the server after I uploaded it successfully!
Source code download:
Tourists, if you want to see the hidden content of this post, please Reply
|