/** * Merge file type specific properties with the generic file properties * * @return void * @since 3.7.0 */ protected function setPropertiesByFileAdapter() { if (!$this->fileAdapter) { return; } $mimeType = $this->fileAdapter->getMimeType($this->fileProperties['path']); if (empty($mimeType)) { return; } $this->fileProperties['mime_type'] = $mimeType; }