Choose where dcc.Download saves file

Hi! Basically the title. Is it possible to choose where dcc.Download saves the file? Like opening up a file explorer dialog box that the user can navigate around with? Or is this outside the scope of the dash download component? Am willing to use additional packages if that’s necessary.

Thanks! :slight_smile:

Hi @weez,
I think this depends on the browser configuration of the user, if the user has set “Ask everytime” while downloading files the explorer box will pop up if not the file will be saved into their selected downloads folder.

Though this is an requested feature #106, I don’t see think it’ll be added as it also posses a security risk. People use fairly real information for their folder structure and accessing the folder names in itself poses an immediate risk. Most OSs tend to just default to a Download location and this is something the user decides through the Browser they use. Not the website.

1 Like

Gotcha. Thank you so much for that thorough explanation!

1 Like

Before my callback I just used : os.chdir(download_path) and it successfully downloaded to this directory. Although this may not be a solution for you, I thought I would mention it.