How to upload files using jQuery's ajax function with PHP?

后端 未结 3 1938
长发绾君心
长发绾君心 2021-01-27 16:00

Here\'s my nonworking attempt:



        
3条回答
  •  终归单人心
    2021-01-27 16:23

    You can not upload file using plain JS/AJAX. A known trick is to post your file to a hidden iframe and update the iframe.

提交回复
热议问题