Is there any chance that I can remove the "Drag and drop file here" of file_uploader

I want to remove the text, is there any approach? Thanks!!!

Hi @Weaver_Maltis, welcome to the Streamlit community!

It’s probably possible to remove it using CSS…what use case are you solving for? Usually, those labels are there to provide context to the users, giving them a hint on the expected workflow.


I’m a Chinese user and I want to change the text to Chinese, but I know little about CSS.

Great reason :slight_smile:

I couldn’t figure out how remove it, but I figured out how to modify it in-place. Not sure how stable this will be across versions of Streamlit, but you can try this (used Google translate, so obviously put the right text as desired):

        .css-9ycgxx::after {
            content: " 拖放";
    """, unsafe_allow_html=True)

fileup = st.file_uploader("Hello")


Thanks, Randy. You‘ve been a great help to me!