Topic: File upload plugin does not accept .xlsx, .docx formats

vtaevere free asked 3 years ago


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

enter image description here


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.


Arkadiusz Idzikowski staff answered 2 years ago


This problem was fixed in v1.6.0.


Kinanda Nugraha priority answered 2 years ago


mdb-angular-file-upload v3.0.0

[acceptedExtensions]="'.xlsx'"

Still not fixed

xlsx upload failed


sthaker@ansi.org 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: enter image description here


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 1 year 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.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: 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