Topic: File upload accept extension zip only
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 6 months ago
Does this happen to you locally or only in the snippet environment?
Karg pro premium priority commented 6 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 6 months ago
Thank you for letting as know about this problem. We will look into it.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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