With the use of AJAX, you can easily upload the selected file to your server and show a preview of it.
If you like to add a remove button to delete the file without page load then you again need to use AJAX to remove the file from the server.
I am using PHP to handle AJAX request on the server-side.