Hi NarendraM,
File is stored actually on remote users machine so its dosent matter where is a file located. Some browsers have a security feature that prevents javascript or any script from knowing your file's local full path. It makes sense as a client, you don't want the server to know your local machine's file system.
So for security reasons browsers do not allow this, i.e. JavaScript in browser has no access to the File System.
So you need to save the file on the server's folder and create a Folder in your Website or Web Application and then saving the file there using that path.
Refer below article.