My web site will create a file in client PC in a predefined file path, and I will write to the file. I will display the path in a text box
Example:
c:/myfolder/today.txt
Now I have to give a “browse” button on clicking that user should be able to select the target path at his own choice, and then I should use the file name to write the content.
You can’t do that. You have zero control over the path on a client PC. You can control the filename though.
Use the
Content-Disposition:header.For example: