The new st.file_uploader now is simply button with the label “upload”, the icon is gone and so is the hint that the user could simply drag/drop a file.
Hey, thanks for your question and for noticing the UI changes!
The latest redesign of st.file_uploader does indeed make the widget more compact: the “Upload” button replaces the old “Browse files” button, and uploaded files now appear as chips inside the dropzone. The drag-and-drop overlay and contextual hints only appear when a user is actively dragging a file over the widget, rather than being shown by default. The upload icon is now part of the button, but the static drag-and-drop hint is hidden unless a drag event is detected. This aligns the file uploader visually with st.chat_input and streamlines the interface, but it does mean the always-visible drag-and-drop hint is gone by default. For more, see the detailed PR review at Redesign st.file_uploader.
If you want to restore a persistent drag-and-drop hint or customize the button/icon, you can use custom CSS as a workaround, but be aware that DOM structure may change in future releases. For more advanced customization, consider a custom component or third-party uploader like st_file_uploader. Community members, feel free to share your own CSS tweaks or component solutions!
Sources: