Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update file upload MIME types to use standard format #1757

Merged
merged 4 commits into from
Jan 20, 2025

Conversation

hexart
Copy link
Contributor

@hexart hexart commented Jan 20, 2025

  • Replace '/' with specific MIME type categories
  • Add support for application, audio, image, text and video files
  • Remove invalid MIME type warning

- Replace '*/*' with specific MIME type categories
- Add support for application, audio, image, text and video files
- Remove invalid MIME type warning
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. frontend Pertains to the frontend. labels Jan 20, 2025
Copy link
Collaborator

@dokterbob dokterbob left a comment

Choose a reason for hiding this comment

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

Thanks! It took me a while to find out why this makes sense, until I landed through Drop zone's documentation at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers

Perhaps we could add some comment describing the why and how of this, referring to aforementioned (or some equivalent) URL?

It's nice to be kind to our future selves! ;)

@dokterbob dokterbob added the blocked Awaiting update or feedback from user after initial review/comments. label Jan 20, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 20, 2025
@hexart hexart requested a review from dokterbob January 20, 2025 10:58
@dokterbob dokterbob enabled auto-merge (squash) January 20, 2025 14:22
@dokterbob dokterbob merged commit 396a5bd into Chainlit:main Jan 20, 2025
8 checks passed
@hexart hexart deleted the fix-Remove-invalid-MIME-type-warning branch January 20, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Awaiting update or feedback from user after initial review/comments. frontend Pertains to the frontend. size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants