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
習慣沉默2017-06-05 11:11:24
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[]
.
巴扎黑2017-06-05 11:11:24
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