Topic: File upload plugin does not accept .xlsx, .docx formats
Expected behavior
File upload plugin allows file extensions of type ".xlsx", ".docx" when specifying [acceptedExtensions]
Actual behavior
"Your file has incorrect file format" error message is displayed although browser "Open" dialog filters files correctly by format.
No such error occurs, when [acceptedExtensions]="'.pdf'"
Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/vtaevere/3499395
Arkadiusz Idzikowski staff answered 3 years ago
sthaker@ansi.org pro premium answered 2 years ago
Our team is running into a similar issue but on version 2.0.2 of the file upload plugin. We have the following allowed: [acceptedExtensions]="'.pdf, .docx, .txt, .xlsx'"
.
With the file extension list as such, we get no error when selecting a .pdf, but if we do either .txt, .docx, or .xlsx, we get errors:
Arkadiusz Idzikowski staff commented 2 years ago
Thank you for reporting this problem. We will make some tests on our end and let you know what we found.
Arkadiusz Idzikowski staff commented 2 years ago
We added some fixes to the plugin in v3.0.1, please upgrade your plugin version and let us know if you encounter any further problems.
Kinanda Nugraha pro premium priority answered 2 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 1.3.0
- Device: PC
- Browser: Safari, Chrome
- OS: Windows 10, MacOS
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 3 years ago
@vtaevere Thank you for letting us know about this problem. We will take a closer look at that and let you know what we found. It looks like we will need to fix that on our end.