File_uploader widget cant upload from /documents/ folder in edge

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.

After some troubleshooting, I imagine this could be an issue of our company internal security settings. Meaning that likely this Error is not reproducible for most users and therefore can be seen as closed.