Closed kaleming closed 3 years ago
It seems if I define on layout function, it works:
def layout(dashapp):
UPLOAD_FOLDER = "/tmp/"
du.configure_upload(dashapp, UPLOAD_FOLDER)
return html.Div(
[
html.H1('Demo'),
html.Div(
du.Upload(
id='dash-uploader',
text='Drag and Drop Here to upload!',
text_completed='Uploaded: ',
cancel_button=True,
pause_button=False,
filetypes=['csv'],
default_style=None,
upload_id=None,
max_files=1,
),
style={
'textAlign': 'center',
'width': '600px',
'padding': '10px',
'display': 'inline-block'
},
),
html.Div(id='callback-output')
],
style={
'textAlign': 'center',
},
)
I will make some more tests.
Hi, I am using this architecture to deploy multiple dash apps on flask: Repository
I am quite confused the best way to integrate dash-uploader into init.py
May I declare
du.configure_upload
on callback of dashapp I want to use it (in order to avoid conflict ) ?Or should I insert this into this function ? It seems it occurs some conflicts declaring this more than 1 time.
My output is: