Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: File upload accept extension zip only

Karg priority asked 7 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 7 months ago


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


Karg priority commented 7 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 7 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