# Dash data table download

**URL:** <https://community.plotly.com/t/dash-data-table-download/38558>\
**Category:** Dash Python\
**Created:** [April 28, 2020, 2:47pm UTC](https://community.plotly.com/t/dash-data-table-download/38558 "2020-04-28T14:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srini](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@srini](https://community.plotly.com/u/srini)\
**Post date:** [April 28, 2020, 2:47pm UTC](https://community.plotly.com/t/dash-data-table-download/38558/1 "2020-04-28T14:47:38Z")

</div>

Hello Team,

I am currently using the below script to download the data table from the dash which i created. The download is working fine however when i hosted the Dash and when i try to click the download button through another system, the file is being downloaded at the host computer and not at user computer. I apologize if my question seems silly as i am very new to Dash & python.

html.Button(id=“save-button”,n\_clicks=0,children=“Save”),  
html.Div(id=“output-1”,children=“Press button to save data at your desktop”)

@app.callback(  
Output(“output-1”,“children”),  
[Input(“save-button”,“n\_clicks”)],  
[State(“table”,“data”)])

def selected\_data\_to\_csv(nclicks,table1):  
if nclicks == 0:  
raise PreventUpdate  
else:

pd.DataFrame(table1).to\_csv(‘C:\Users\’+loggedin\_user+’\Desktop\Open\_Queue\_Dump.csv’,index=False)  
return “Data Submitted”

Kindly assist.
