Summary
The file uploader widget works fine for files outside of the standard windows document folder, but does not work for files in the documents folder. It throws the error:
Canât open this file: XXXYYZZZ.com canât open files in this folder because it contains system files.
Steps to reproduce
Code snippet:
uploaded_file = st.file_uploader(
"Upload a PDF to autofill",
type="pdf",
accept_multiple_files = False
)
To recreate this error, use Edge, and try to upload a file by clicking on the widget (âbrowseâ) and uploading a file from your windows standard âdocumentsâ folder.
If using the drag and drop feature (e.g. dragging and dropping a file from a folder) this doesnât happen.
Expected behavior:
Expect that we can upload single files from documents folder, as is intended by the chromium security settings.
chrome_file_system_access_permission_context.cc - Chromium Code Search
Debug info
- Streamlit version: 1.20.0
- Python version: 3.8.15
- Using pip,
- OS version: Linux based server using kubernetes
- Browser version: Edge Version 110.0.1587.69 (Official build) (64-bit)
Additional Information
Code deployed in company internal kubernetes cluster.