You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Vue 3 version. Whenever I try to upload a .doc .docx file the newFile.type is empty, therefore I'm not able to validate on inputFilter
I'm aware that I can check file type as per filename as explained in docs, but it doesn't fill very trustworthy. Instead, I'd like to check with file type as I use to do with any other file (which works as expected)
The odd thing is that .xls and .xlsx files work fine returning this in newFile.type:
constinputFilter=(newFile,oldFile,prevent)=>{console.log(newFile,oldFile)// Handle new fileif(newFile&&!oldFile){// Check valid extensionif(!accept.includes(newFile.type)){alert('Tipo de archivo no valido')returnprevent()}}}
I'm using the Vue 3 version. Whenever I try to upload a .doc .docx file the
newFile.type
is empty, therefore I'm not able to validate oninputFilter
I'm aware that I can check file type as per filename as explained in docs, but it doesn't fill very trustworthy. Instead, I'd like to check with file type as I use to do with any other file (which works as expected)
The odd thing is that .xls and .xlsx files work fine returning this in
newFile.type
:Any advice will be appreciated
The log returns this
The text was updated successfully, but these errors were encountered: