search

Home  >  Q&A  >  body text

php - weui upload multiple images uploaded at the same time

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

巴扎黑巴扎黑2718 days ago761

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默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[].

    reply
    0
  • 巴扎黑

    巴扎黑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

    reply
    0
  • Cancelreply