I'm afraid this isn't going to work the way you seem to want it to. From the looks of this you are trying to automatically upload a file from a computer to your server through web languages. I can already tell you that it's impossible via any front-end language (none of these have access to a computer).
It could technically be done via PHP (or some other server-side language) but in that case PHP (and a server) would need to be running on any PC that will need to upload the file.
So in short, what you seem to want will require something other than what standard web languages offer.