forked from Cavemanon/cavepaintings
Added option to detect file type based on header bytes
This commit is contained in:
@@ -310,7 +310,7 @@ function getMimeType(string $file, string $ext=""): string
|
||||
return 'application/octet-stream';
|
||||
}
|
||||
|
||||
function getExtension(?string $mime_type): ?string
|
||||
function get_extension(?string $mime_type): ?string
|
||||
{
|
||||
if (empty($mime_type)) {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user