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[]
.
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