disable check of content type

implementation to determine content type of files in android/java differ from php
.amr files do not work
example: http://up.picn.de/files/56e2d7b9-9847-4596-803c-e5b37f9b089f/good%20bad%20ugly.amr
This commit is contained in:
lookshe 2025-01-04 22:31:03 +01:00
parent b7752e744d
commit 52da5f834b

View file

@ -147,7 +147,7 @@ switch ($method) {
}
// check actual mime type with registered mime type
$uploadedContentType = mime_content_type($uploadFilePath);
if (!is_null($slotParameters['content_type']) && !empty($slotParameters['content_type']) && $uploadedContentType != $slotParameters['content_type']) {
if (false && !is_null($slotParameters['content_type']) && !empty($slotParameters['content_type']) && $uploadedContentType != $slotParameters['content_type']) {
unlink($uploadFilePath);
sendHttpReturnCodeAndJson(403, "Uploaded file content type differs from requested slot content type.");
}