File uploading is a basic requirement in a website. It is done using a server-side script. Requires reloading the page after form submission to execute the script.
With AJAX client-side script is interact with the server-side script and performs the action without page reload.
In this tutorial, I show how you can upload file using JavaScript AJAX and PHP.