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.
- Is this kinda an internal bug or something?
- Do anyone else observe this same issue?
Hi @JamiuS, and welcome to our forums!
Can you please send us the code?
Hi @Charly_Wargnier . Thanks for your response.
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.
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.