mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
usb_lib/files/upload/upload2usb.php: allow zip files given some MacOS files, e.g., Pages files, have a mimetype of application/aip
This commit is contained in:
parent
48f4fc56f8
commit
c49c7b0d8d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ function getFileCount ($folder_path) {
|
|||
//check if file mimetype is acceptable for upload
|
||||
function isFileMimeTypeAcceptable ($file) {
|
||||
$mimetype = strtolower(mime_content_type($file));
|
||||
$invalid_mimetypes_str = array ("compress", "image/svg+xml", "octet", "text/xml", "xhtml+xml", "zip");
|
||||
$invalid_mimetypes_str = array ("compress", "image/svg+xml", "octet", "text/xml", "xhtml+xml");
|
||||
foreach ($invalid_mimetypes_str as $invalid_mt_str) {
|
||||
if (str_contains($mimetype, $invalid_mt_str)) {
|
||||
error_log('UPLOAD2USB ERROR - MIMETYPE: ' . $mimetype);
|
||||
|
|
Loading…
Reference in a new issue