# Upload Component Not Rendering

**URL:** <https://community.plotly.com/t/upload-component-not-rendering/6411>\
**Category:** Dash Python\
**Created:** [October 20, 2017, 5:40pm UTC](https://community.plotly.com/t/upload-component-not-rendering/6411 "2017-10-20T17:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![3li](https://avatars.discourse-cdn.com/v4/letter/3/7c8e57/32.png) [@3li](https://community.plotly.com/u/3li)\
**Post date:** [October 20, 2017, 5:40pm UTC](https://community.plotly.com/t/upload-component-not-rendering/6411/1 "2017-10-20T17:40:54Z")

</div>

I am trying to add a csv upload option to a dash app I am building, but running into an issue where the component does not render. I pulled an example from the PR that implemented the upload component just to check I didn’t screw anything up and it also doesn’t render.

When I inspect in Chrome I see the `<input>` component with `display: None`, and I can remove that style element to surface the button. However, callback to the `DataTable` does not get triggered . Not sure what I’m doing wrong, so any help would be appreciated

I’ve attached my `requirements.txt` and the sample code below.

```auto
certifi==2017.7.27.1
chardet==3.0.4
click==6.7
dash==0.19.0
dash-core-components==0.14.0
dash-html-components==0.8.0
dash-renderer==0.11.1
dash-table-experiments==0.5.0
decorator==4.1.2
enum34==1.1.6
Flask==0.12.2
Flask-Compress==1.4.0
functools32==3.2.3.post2
idna==2.6
ipython-genutils==0.2.0
itsdangerous==0.24
Jinja2==2.9.6
jsonschema==2.6.0
jupyter-core==4.3.0
MarkupSafe==1.0
nbformat==4.4.0
numpy==1.13.3
pandas==0.20.3
plotly==2.1.0
python-dateutil==2.6.1
pytz==2017.2
requests==2.18.4
six==1.11.0
traitlets==4.3.2
urllib3==1.22
Werkzeug==0.12.2

```

```auto
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
import dash_table_experiments as dt
import pandas as pd
import io

app = dash.Dash()

app.layout = html.Div([
    html.H1('Dash Upload Component'),
    dcc.Upload(id='upload'),
    dt.DataTable(
        id='datatable',
        rows=[{}]
    ),
], className="container")

@app.callback(
    Output('datatable', 'rows'),
    [Input('upload', 'contents')])
def update_figure(content):
    if not content:
        return []
    dff = pd.read_csv(io.StringIO(content))
    return dff.to_dict('records')

app.css.append_css({"external_url": "https://codepen.io/chriddyp/pen/bWLwgP.css"})

if __name__ == ' __main__':
    app.run_server(debug=True)

```

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [October 20, 2017, 5:55pm UTC](https://community.plotly.com/t/upload-component-not-rendering/6411/2 "2017-10-20T17:55:59Z")

</div>

@3li - It’s rendering, it’s just that the children is empty. The examples in the PR are outdated, please see the official docs at [https://plot.ly/dash/dash-core-components/upload](https://plot.ly/dash/dash-core-components/upload) for more complete examples.

Thank you!

---

<div class="post-metadata">

**Author:** ![3li](https://avatars.discourse-cdn.com/v4/letter/3/7c8e57/32.png) [@3li](https://community.plotly.com/u/3li)\
**Post date:** [October 20, 2017, 6:17pm UTC](https://community.plotly.com/t/upload-component-not-rendering/6411/3 "2017-10-20T18:17:35Z")

</div>

Ha, I knew it was going to be something that simple 😔

Thanks for the quick response as always!
