Skip to content

Conversation

rrahulrroy
Copy link

Fixes FileUploaderDropzone not honoring the acceptedMimeTypes prop during drag and drop operations.

Issue: When users dragged and dropped files onto the FileUploaderDropzone, the component would accept any file type regardless of the acceptedMimeTypes prop configuration. The MIME type validation was only working for files selected through the native file picker.

Root Cause: The drag and drop event handler (handleDrop) was missing MIME type validation logic that was present in the file input selection flow.
Fixes #4377

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

changeset-bot bot commented Sep 3, 2025

🦋 Changeset detected

Latest commit: 29cedf8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@twilio-paste/file-uploader Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 3, 2025

Someone is attempting to deploy a commit to the Twilio Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 3, 2025
Copy link

codesandbox-ci bot commented Sep 3, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 29cedf8:

Sandbox Source
@twilio-paste/nextjs-template Configuration
@twilio-paste/token-contrast-checker Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FileUploaderDropzone does not honour acceptedMimeTypes on drag/drop
1 participant