diff --git a/src/components/form-file/form-file.js b/src/components/form-file/form-file.js index b562c55c1ae..84ce5281ee7 100644 --- a/src/components/form-file/form-file.js +++ b/src/components/form-file/form-file.js @@ -186,7 +186,10 @@ export default { return } if (!this.multiple) { - this.selectedFile = files[0] + let firstElement = files[0] + if (firstElement.type.match(this.accept)) { + this.selectedFile = firstElement + } return } // Convert files to array