St.file_uploader fails to accept file on mobile

st.file_uploader recently would not accept file when using a mobile to visit app. I thought it was deprecated due to my Streamlit version but I still encounter same issue after haven upgraded my version.

Some questions:

  1. Is this kinda an internal bug or something?
  2. Do anyone else observe this same issue?
1 Like

Hi @JamiuS, and welcome to our forums!

Can you please send us the code?


1 Like

Hi @Charly_Wargnier . Thanks for your response.

It’s just user_file = st.file_uploader("Upload a file", type=["csv", "xlsx"])

It worked perfectly fine before, but for some strange reason, files can only be uploaded when using a desktop.

It may be worth trying different browsers on your mobile device or testing on a different mobile device. Do you still experience the issue when switching to a new configuration?

Also, are you certain that you are uploading allowed file types (CSV or XLSX)?


@Charly_Wargnier I did tried using a different browser and it worked but chrome for some strange reasons do not permit file upload when using mobile device.

Thanks for pointing that out because my anticipation has shifted.

I thought it was my chrome configuration but after having tried using other mobile devices, I still encounter the unexpected behavior.

Thanks @JamiuS

Would you mind opening a GitHub issue for this, please?


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