Skip to content

Commit 5d1135c

Browse files
committed
fix: add getMimetype commet
1 parent 731208e commit 5d1135c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Upyun/Upyun.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ public function info($path, $otherHeaders = array())
186186
return Util::getHeaderParams($response->getHeaders(), $otherHeaders);
187187
}
188188

189+
/**
190+
* 获取文件的文档类型
191+
* @param string $path 云存储文件路径
192+
* @return string 文档类型,获取失败返回空字符串
193+
*/
189194
public function getMimetype($path)
190195
{
191196
$params = $this->info($path, array('content-type'));

0 commit comments

Comments
 (0)