Skip to content

Commit 29cedf8

Browse files
Rahul RoyRahul Roy
authored andcommitted
docs: added changeset message for file-uploader patch fix (#4377)
1 parent 3404566 commit 29cedf8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.changeset/new-spies-hammer.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@twilio-paste/file-uploader": patch
3+
---
4+
5+
fix(FileUploaderDropzone): honor acceptedMimeTypes prop during drag and drop operations
6+
Previously, the FileUploaderDropzone component would ignore the acceptedMimeTypes prop when files were dragged and dropped, only validating file types when using the native file picker. This fix ensures that MIME type validation is consistently applied to both drag-and-drop and file input selection methods.
7+
8+
Added MIME type validation to drag and drop event handler
9+
Added support for wildcard MIME type patterns (e.g., "image/\*")
10+
Added console warnings for rejected file types
11+
Maintained backward compatibility - no breaking changes to existing API
12+
Added comprehensive test coverage for validation scenarios
13+
14+
Fixes #4377

0 commit comments

Comments
 (0)