Skip to content

Commit 8e0587e

Browse files
committed
return string
1 parent 0bd1e8a commit 8e0587e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/FileAPI.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,13 @@ protected function getOriginalName($contentDisposition)
7171
protected function getMimeType($originalName)
7272
{
7373
$mimeType = (string) $this->request->header('content-type');
74+
7475
if (empty($mimeType) === true) {
7576
$mimeType = $this->files->mimeType($originalName);
77+
78+
if ($mimeType === false) {
79+
return '';
80+
}
7681
}
7782

7883
return $mimeType;

0 commit comments

Comments
 (0)