How can I only accept and show in the search csv files using dcc upload?

I have a dcc Upload element and I saw there is an accept variable But I cannot figure out how can I use it to only accept CSV files and in the search to only show me CSV files.
Anyone got an idea of how I can do this?

This works for me by showing only .csv & .xlsx files,

dcc.Upload(id = "file-upload", 
           accept = ".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
                     application/vnd.ms-excel")

I Hope this helps

1 Like

Yes it does! Thanks!