summaryrefslogtreecommitdiff
path: root/app/Model/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/File.php')
-rw-r--r--app/Model/File.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/app/Model/File.php b/app/Model/File.php
index e17ecb2b..03ea691d 100644
--- a/app/Model/File.php
+++ b/app/Model/File.php
@@ -189,30 +189,6 @@ abstract class File extends Base
}
/**
- * Return the image mimetype based on the file extension
- *
- * @access public
- * @param $filename
- * @return string
- */
- public function getImageMimeType($filename)
- {
- $extension = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
-
- switch ($extension) {
- case 'jpeg':
- case 'jpg':
- return 'image/jpeg';
- case 'png':
- return 'image/png';
- case 'gif':
- return 'image/gif';
- default:
- return 'image/jpeg';
- }
- }
-
- /**
* Generate the path for a thumbnails
*
* @access public