-
- /**
- * @throws Exception
- */
- public function checkMimeBlacklist()
- {
- if (in_array(self::$FILE_MIME, Settings::$BLOCKED_MIME)) {
- throw new Exception('Filetype not allowed.', 415);
- }
- }
-
- /**
- * @throws Exception
- */
- public function checkExtensionBlacklist()
- {
- if (in_array(self::$FILE_EXTENSION, Settings::$BLOCKED_EXTENSIONS)) {
- throw new Exception('Filetype not allowed.', 415);
- }
- }
-}