search

Home  >  Q&A  >  body text

javascript - When I use FormData to submit data, the data does not appear in the background. What did I write wrong?

1. I used FormData to submit data and upload pictures at the front desk, and then obtained the pictures in the background but could not get the picture information. I don’t know where I made a mistake

2. The following is my front-end code

3. This is my php code

4. The following is the message sent by my console


]

5. I don’t know where I made a mistake. Can someone help me look at it?

天蓬老师天蓬老师2816 days ago352

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:01:15

    formData = new FormData($('formid')[0]);

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 13:01:15

    I just did this function, but I used ajax here

    reply
    0
  • Cancelreply