Pass file from Javascript upload to PHP

前端 未结 2 787
醉梦人生
醉梦人生 2021-01-12 17:10

I\'m working on a script to let the user upload a file and sees a upload status and the file is then saved on the server.

The problem is that I cannot use the php ap

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 17:56

    I have a Gist on this. It uses xhr.send(FormData) and shows minimal code to handle the file in PHP.

提交回复
热议问题