Topic: File upload accept extension zip only

Karg priority asked 6 months ago


set acceptedExtensions to zip and allow zip files (only) to be uploaded

does not allow zip files (no error, no file added)

https://mdbootstrap.com/snippets/standard/karg/6110878


Kamila Pieńkowska staff answered 5 months ago


Does this happen to you locally or only in the snippet environment?


Karg priority commented 5 months ago

In all environments. I've found a solution. If i add acceptedExtension "application/x-zip-compressed" it works. _checkAcceptedExtensions() fails because in "mime-type-data.js" it says a different mime type for .zip " { mime_type: 'application/zip', ext: '.zip' },". It happens also on my customers side, so seems to be a wider issue.


Kamila Pieńkowska staff commented 5 months ago

Thank you for letting as know about this problem. We will look into it.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.2.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes