protected function getMimeType($file) { return is_dir($file) ? 'text/directory' : File_Upload::mime($file); }