Skip to content

st.file_uploader() opens camera in android phone #1537

@rahulrajpl

Description

@rahulrajpl

Summary

I have hosted an app here https://wexda.herokuapp.com/ When I access it via android phone, it open the camera when I click file uploader.

Steps to reproduce

Go to https://wexda.herokuapp.com/ from an android phone and click on the browse file link

Expected behavior:

Open phone's file browser to upload csv file

Actual behavior:

I expected it to open the file browser. In some phone, it open the choice of application to open, camera is also listed along with file browser. In some cases, without option, it directly opens the camera. It should directly open the file browser in android. Camera shouldn't even come in the option.

Is this a regression?

no

Debug info

  • Streamlit version: 0.61.0
  • Python version: 3.7.6
  • Using Conda? PipEnv
  • OS version: Ubuntu 19.10 (Eoan Ermine)
  • Browser version: Android Chrome 83.0.4103.96

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mobileRelated to mobile device supportfeature:st.file_uploaderRelated to the `st.file_uploader` widgettype:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions