-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
b-form-file issue with "accept" values - in "multiple" mode #1526
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
Comments
+1 |
2 similar comments
+1 |
+1 |
I guesse the problem in
|
I have the same problem with multiple b-file, when I select more than one format by extension (for instace: ".pdf, .png") , The element or elements selected are nod added to the model have you found a solution for this issue? best regards |
+1 ...Have the same issue |
+1 should be fixed. |
Is someone working on this one? |
we can pass the regular expression into accept property and it will work properly |
@mmieluch Therefore, the comma in your accept prop can't be parsed by regex. And I agree to @Diaskhan‘s opinion, |
+1 |
2 similar comments
+1 |
+1 |
Link to JSFiddle
I found what to me looks like a strange behaviour of
b-form-file
component. I set an instance ofb-form-file
to support selecting multiple files, and specifiedaccept
MIME types, exactly like it's shown in the docs (just skipped theimage/gif
type):But when dropping any files (single or multiple) on the input doesn't update the model - the component simply ignores all the files, even valid ones. When picking files manually, instead of dropping them, the non-accepted files are disabled in the browser file select dialog (in Chrome), so that's OK. But then again - choosing any JPG or PNG file doesn't update the model, and the event emitted by the component has an empty payload.
b-form-file
still behaves as expected when not in "multiple" mode.OS: macOS High Sierra
Browsers: Chrome 63, Firefox 57
Bootstrap: 4.beta-2
BootstrapVue: 1.4.0
The text was updated successfully, but these errors were encountered: