diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-16 21:12:43 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-16 21:12:43 -0500 |
commit | 8936792f6f7a408dae7e0a6a41274202822acd9c (patch) | |
tree | a07a005ef7095472f7a64779df85825fe30a97b2 /app/Model/File.php | |
parent | 5bbc903dcab12dcf53abc40bf67c2cd7898e0420 (diff) |
Add file attachements to projects
Diffstat (limited to 'app/Model/File.php')
-rw-r--r-- | app/Model/File.php | 24 |
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 |