Save everything and open this page inside your browser. Select a file to upload and submit it.
If everything is ok(depending on your browser settings) a popup should apear which asks you what to do with the file.
That's it
Thank you for reading this tutorial. Feel free to improve the code as you want or add your own logic. NOTE: If you find errors in this document please correct them or leave a comment what's wrong.