I have this snippet of code that returns a url containing a .csv file for download.
const getCsvURL = async () => {
const response = await FiltroDesempenhoManager.getCsvURL();
setCsvUrl(response);
};
This function is called from a click of a button.
<Button
href={csvUrl}
onClick={() => getCsvURL()}
...
/>
I would like to open the explorer for the user to choose the folder in which the file will be downloaded. Currently the file is being automatically downloaded in the download folder. How do I do this? Button is from Material UI