setIsDirectory(false); } /** * Get MIME types from files extensions * * @param string|array $exts * @return string */ public function getMimeTypesByExtensions($exts) { $mimes = array_unique($this->_getHelper()->getMimeTypeFromExtensionList($exts)); // Not include general file type unset($mimes['application/octet-stream']); return implode(',', $mimes); } }