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 731208e commit 5d1135cCopy full SHA for 5d1135c
src/Upyun/Upyun.php
@@ -186,6 +186,11 @@ public function info($path, $otherHeaders = array())
186
return Util::getHeaderParams($response->getHeaders(), $otherHeaders);
187
}
188
189
+ /**
190
+ * 获取文件的文档类型
191
+ * @param string $path 云存储文件路径
192
+ * @return string 文档类型,获取失败返回空字符串
193
+ */
194
public function getMimetype($path)
195
{
196
$params = $this->info($path, array('content-type'));
0 commit comments