This isn't a widely available feature but using the showSaveFilePicker() from the Web API would allow some users to be able to select where on their computer they want to save the file. It is currently fully supported on Chrome and Edge.
You could always fall back to the current implementation of saving a file if the showSaveFilePicker function isn't available for the current browser.
https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker
https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream#examples
This isn't a widely available feature but using the showSaveFilePicker() from the Web API would allow some users to be able to select where on their computer they want to save the file. It is currently fully supported on Chrome and Edge.
You could always fall back to the current implementation of saving a file if the showSaveFilePicker function isn't available for the current browser.
https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker
https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream#examples