Returns mimetype metadata value if set, otherwise attempts to detect it.
public getMimeType ( ) : string | ||
Результат | string |
/** * @group FileService */ public function testCanSetMimeType() { unset($this->file->mimetype); $mimetype = 'application/plain'; $this->file->setMimeType($mimetype); $this->assertEquals($mimetype, $this->file->getMimeType()); }