Send file to PHP server with JS
问题 I can send files from the browser to the server using drag'n'drop and this code simply works fine: var temp = new FormData(); temp.append("file_content",e.originalEvent.dataTransfer.files[0]); //Ajax POST here... Then I make a POST request (Ajax) to send that file to PHP and PHP can manipulate that file using $_FILES[file_content] . Easy. My problem is that sometimes the user drops a folder and I already can manipulate the files inside that folder with JS in order to send them via Ajax. My