From dfe234a7aaaacedcc94716f955b44a1b50c4a057 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 6 Apr 2016 13:50:31 +0200 Subject: * components -> controls --- app/php/components/SafeFileUpload.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 app/php/components/SafeFileUpload.php (limited to 'app/php/components/SafeFileUpload.php') diff --git a/app/php/components/SafeFileUpload.php b/app/php/components/SafeFileUpload.php deleted file mode 100644 index 98e120a..0000000 --- a/app/php/components/SafeFileUpload.php +++ /dev/null @@ -1,34 +0,0 @@ -_isSecure; - } - - public function setIsSecure($bool) { - $this->_isSecure = $bool; - } - - public function getFileType() { - $type = parent::getFileType(); - if ($this->getIsSecure()) { - $fileInfo = new finfo(FILEINFO_MIME_TYPE); - return $fileInfo->file($this->getLocalName()); - } - else { - return $type; - } - } - -} - -?> -- cgit v1.2.3