We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1064bf3 commit 40dc20aCopy full SHA for 40dc20a
app/FileStorage/Filesystems/AliyunOss/FileMeta.php
@@ -105,7 +105,7 @@ public function getSize(): int
105
*/
106
public function getMimeType(): string
107
{
108
- return MimeTypes::getMimetype($this->resource->getPath());
+ return MimeTypes::getMimetype($this->resource->getPath()) ?: 'application/octet-stream';
109
}
110
111
/**
app/FileStorage/Filesystems/Local/FileMeta.php
@@ -131,7 +131,7 @@ public function getMimeType(): string
131
132
return $this->filesystem->mimeType(
133
$this->resource->getPath()
134
- );
+ ) ?: 'application/octet-stream';
135
136
137
0 commit comments