Skip to content

Docs for new file uploader types#14453

Merged
lukasmasuch merged 2 commits intostreamlit:developfrom
MathCatsAnd:docs-file-uploade-type-shortcuts
Mar 23, 2026
Merged

Docs for new file uploader types#14453
lukasmasuch merged 2 commits intostreamlit:developfrom
MathCatsAnd:docs-file-uploade-type-shortcuts

Conversation

@MathCatsAnd
Copy link
Copy Markdown
Contributor

Describe your changes

Docs for st.file_uploader and st.chat_input, which now support additional strings to identify allowed file types for upload.


Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copilot AI review requested due to automatic review settings March 22, 2026 03:35
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for contributing to Streamlit! 🎈

Please make sure you have read our Contributing Guide. You can find additional information about Streamlit development in the wiki.

The review process:

  1. Initial triage: A maintainer will apply labels, approve CI to run, and trigger AI-assisted reviews. Your PR may be flagged with status:needs-product-approval if the feature requires product team sign-off.

  2. Code review: A core maintainer will start reviewing your PR once:

    • It is marked as 'ready for review', not 'draft'
    • It has status:product-approved (or doesn't need it)
    • All CI checks pass
    • All AI review comments are addressed

We're receiving many contributions and have limited review bandwidth — please expect some delay. We appreciate your patience! 🙏

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the public API docstrings for st.file_uploader and st.chat_input to document newly supported file type specifiers (MIME types, wildcards, and category shortcuts) in addition to file extensions.

Changes:

  • Expanded st.file_uploader(..., type=...) docs to describe MIME types (image/jpeg), wildcards (image/*), and category shortcuts (image, audio, video, text).
  • Expanded st.chat_input(..., file_type=...) docs with the same allowed-type semantics and an IANA reference link.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
lib/streamlit/elements/widgets/file_uploader.py Updates the type parameter docstring to include MIME-based specifiers and shortcuts.
lib/streamlit/elements/widgets/chat.py Updates the file_type parameter docstring to include MIME-based specifiers and shortcuts.

@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Mar 22, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@lukasmasuch lukasmasuch added impact:users PR changes affect end users change:docs PR contains documentation change labels Mar 22, 2026
Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lukasmasuch lukasmasuch merged commit afffb58 into streamlit:develop Mar 23, 2026
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:docs PR contains documentation change impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants