I am using the dcc.upload component but I have some questions in some of their props usage:
- max_size which unit is using? an integer number of bytes? a string with the corresponding unit, like 150MB? The docs doesn’t show any example on how to use it.
- accept: csv. Here, the documentation says that csv files are considered text/plain in mac and application/vnd.ms-excel in Windows.
So what is the proper way to filter to only allow csv files? I have seen only examples where they don’t use the accept prop and they just filter by filename and drop any other file that doesn’t end in .csv, however it would be clearer in code and better for the user if the file-chooser dialog would show files only ending in