File_uploader widget cant upload from /documents/ folder in edge


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: 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",
        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. - 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.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.