php - weui upload multiple images uploaded at the same time
巴扎黑2017-06-05 11:09:24
0
2
765
The current problem encountered is the application's weui image upload framework, but the preview part li in the code obtains images of type blob. But there is only one input, submitted to php through ajax, and only the last picture can be obtained
What you are receiving is probably a string of characters. Ajax upload files either use formajax.js or formdata object. The key value for multiple words is img[].
What you are receiving is probably a string of characters. Ajax upload files either use
formajax.js
orformdata object
.The key value for multiple words is
img[]
.Your js is definitely not good. . . To traverse the file input, take out all the files and upload them again. . Or submit the form directly