support File Ext & MIME type validation for uploaded files #4624
Damon0820
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes we encounter scenarios where we need to add MIME type (https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file#accept) validation for uploaded files. For example, in image uploads, we might restrict the allowed file types to “.png, .jpeg”. In that case, we would need to add MIME type validation consistently across all entry points, including selecting a system image in MediaToolbarButton, entering an image URL in MediaUrlDialogContent, as well as onDrop, onPaste, and so on.
Could you please help evaluate whether this feature can be added? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions