private function InvalidMimeType() { if (count($this->mimeTypes) == 0) { return true; } $mimeType = IO\File::GetMimeType($this->upload->TempPath()); return !in_array($mimeType, $this->mimeTypes); }
private function InvalidMimeType() { if (count($this->mimeTypes) == 0) { return true; } $mimeType = IO\File::GetMimeType($this->upload->TempPath()); return !in_array($mimeType, $this->mimeTypes); }