This is my upload button.
You would be able to get at least temporary created copy of the file path on your machine. The only condition here is your input element should be within a form
What you have to do else is putting in the form an attribute enctype
, e.g.:
you can find the path string at the bottom. It opens stream to file and then deletes it.