Think about the situation over the web: you have a client (the browser) communicating with a server. What you're doing is just the same - the client and the server happen to both be on the same machine, but it's still a client-server thing.
Now imagine someone is uploading a file to your site. They hit their file input field's Browse button, and pick c:\foo\badgers\silly\20030101.jpg (or whatever).
It gets on to your server. Now, what use to you would be the "c:\foo\badgers\silly\" part? That's a file path on the client's machine; it's of no use to you whatever on the server.
So when a file is uploaded, that path is not sent. All you get is a copy of the file and its name.