Checklist
Summary
Before I was using streamlit 1.17.
There it was working correctly that if I use argument type=["csv"], I did not see any files of other type in the selection window (Windows OS).
Now with streamlit 1.18.1 I can see all files of various filetypes, which seems like a bug to me.
However when I select those, it correctly shows them as "files are not allowed.". But why leading a user to falsely selecting them in the first place? The way that streamlit 1.17 did this was the preferred in my opinion.
Reproducible Code Example
import streamlit as st
uploaded_files = st.file_uploader(f"Upload csv files", type=["csv"], accept_multiple_files=True)
Steps To Reproduce
Use fileuploader with specified file extension (on Windows OS) and see that you can select also other filetypes in the dialog -> Bug!?
Expected Behavior
As stated above it would be good to completely hide files of other file extensions in the dialog window.
Current Behavior
See Summary
Is this a regression?
Debug info
- Streamlit version: 1.18.1
- Python version: 3.9
- Operating System: Windows Server 2022
- Browser: Chrome
- Virtual environment: Conda
Additional Information

Are you willing to submit a PR?
Checklist
Summary
Before I was using streamlit 1.17.
There it was working correctly that if I use argument type=["csv"], I did not see any files of other type in the selection window (Windows OS).
Now with streamlit 1.18.1 I can see all files of various filetypes, which seems like a bug to me.
However when I select those, it correctly shows them as "files are not allowed.". But why leading a user to falsely selecting them in the first place? The way that streamlit 1.17 did this was the preferred in my opinion.
Reproducible Code Example
Steps To Reproduce
Use fileuploader with specified file extension (on Windows OS) and see that you can select also other filetypes in the dialog -> Bug!?
Expected Behavior
As stated above it would be good to completely hide files of other file extensions in the dialog window.
Current Behavior
See Summary
Is this a regression?
Debug info
Additional Information
Are you willing to submit a PR?