I am currently working with Bootstrap-Vue and Vue2. Utilizing the Form File Input, I want to enable users to upload files, but specifically in PDF format. To achieve this, I have included
accept="application/pdf"
:
<b-form-file
v-model="fileLoc"
browse-text="choose"
accept="application/pdf"
/>
However, despite setting the file type to PDF, users can still select "All" and pick a non-PDF file:
https://i.sstatic.net/JOKoZ.png
What steps should I take to ensure that users only upload files in PDF format?