Skip to content

st.write should show a nice visualization of UploadedFile #1178

@tconkling

Description

@tconkling

I want to be able to do:

result = st.file_uploader("upload a file")
st.write(result)

Currently, this just prints out something like <_io.StringIO object at 0x1170fab90>; but what I want to see is the contents of that StringIO


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.writeRelated to `st.write`type:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions