I am developing an web application with Python and Django web framework. There is a part where I have to export the database table content in a .csv format file to a local disk. I wonder if there is a way to show an file browser window to let the user picking where(which directory) he/she wants to save this file by clicking a "button(eg. choose directory)" on webpage?
I am confused whether I should achieve this feature through Python, Django, or JavaScript.
And I hope it returns a path(string) to the location where the user wants to store this file.
update- I already know how to export the contents into a .csv file. I pass this cmd to the database: "copy " + table_name + " to '" + path + "' delimiter ',' csv header;" and it does the job. So I just need the path where user selects. I could ask the user to manually type the path in a textbox and submit the form, but it's much better if a file browser window can pop up and let the user select where to store the file.