-
Notifications
You must be signed in to change notification settings - Fork 1k
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
FileUpload: Validate files before adding on drop #2690
Comments
Can you give me the example |
And I should mention it earlier, that I'm talking about drag and drop |
I think we need to add an |
Especially from the HTML5 docs for https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept For instance, there are a number of ways Microsoft Word files can be identified, so a site that accepts Word files might use an like this: <input type="file" id="docpicker"
accept=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"> |
Current behavior
There is no validation which types goes into file uploader
Expected behavior
Please add validation to FileUploader based on
accept
property. Or tell me how can I validate by myself and then remove items. I tried to remove wrong files on 'onSelect' event, but it's not working withMinimal reproduction of the problem with instructions
FileUpload -> multiple: true -> mode: advanced
7.2.1
The text was updated successfully, but these errors were encountered: