To upload an image to a server, the most bare-bones way is probably to just use a form:
<form action="your/upload/path/here">
<input type="file" name="this-string-will-get-transferred-too">
<input type="submit">
</form>
Then in whichever server system you are using, you would want to create some kind of handler to receive the HTTP request and the file sent by the form on clicking submit, and then use that server language's / framework's file API to save it where ever you please on your server machine.
This means that you will need to create the server-side code to handle the file and saving it, as well that you have to run the server on your local machine in order to save the file on your own file system, since browsers cannot as a rule save files to arbitrary locations in your file system.
Once you have the file transfer system set up, with the frontend browser portion sending files via some kind of file input, and the backend code for saving the file in a specific directory, you can naturally run the server software on your local machine to achieve the file move from C: => D:
thing.
Good examples of receiving files server-side, for example with a Node.js server, can be found on the site: Node js receive file in HTTP request.