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:
parent
b7752e744d
commit
52da5f834b
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ switch ($method) {
|
||||||
}
|
}
|
||||||
// check actual mime type with registered mime type
|
// check actual mime type with registered mime type
|
||||||
$uploadedContentType = mime_content_type($uploadFilePath);
|
$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);
|
unlink($uploadFilePath);
|
||||||
sendHttpReturnCodeAndJson(403, "Uploaded file content type differs from requested slot content type.");
|
sendHttpReturnCodeAndJson(403, "Uploaded file content type differs from requested slot content type.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue