From 6b75b7e93a7bd344e507333814d370cf6f8bd9b9 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 5 Jul 2020 10:44:03 +0200 Subject: [PATCH] Add mime type variant --- helpers/upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/upload.php b/helpers/upload.php index 2fe8fde..ddbec56 100644 --- a/helpers/upload.php +++ b/helpers/upload.php @@ -41,6 +41,7 @@ class uUpload { private static function getMimeMap() { if (empty(self::$mimeMap)) { self::$mimeMap["image/jpeg"] = "jpg"; + self::$mimeMap["image/jpg"] = "jpg"; self::$mimeMap["image/x-ms-bmp"] = "bmp"; self::$mimeMap["image/gif"] = "gif"; self::$mimeMap["image/png"] = "png"; @@ -163,4 +164,4 @@ class uUpload { } return $fileMeta; } -} \ No newline at end of file +}