Is it possible to download multiple files with dcc.send_data_frame

Hi, I have a callback function where the user click on a button and the function returns a dcc.send_data_frame(df.to_csv, "df.csv', index=False). I’m wondering if it’s possible to make it so that when the user clicks on this button, multiple files are downloaded? By for example specifying a list of files? Or a list of send_data_frame?

It is not supported at the moment. Possible workarounds could be to use multiple Download components, or to zip the files before download.

1 Like

Thanks, I will go with multiple components! Thanks for the tips!

Is this still a problem?

That depends on what you mean by ‘problem’. AFAIK, the recommended approach remains the same.

I am trying to download multiple csv files but separate them into different zip folders according to entity name (a loop for 5 entities). I reach the point to compress the csv files into a zip folder but when I want to compress all the zip folders into one, it throws an error that the file is closed (I am using memory objects here and not a temporary directory).