public function getLegacyExtension() { $data = explode('/', $this->getMimeType()); if (array_key_exists(1, $data)) { return $data[1]; } else { return 'undefined'; } }