diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 2196f0dfbb6a..4ec3c95af46a 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -180,6 +180,18 @@ public function size($path) return $this->driver->getSize($path); } + /** + * Get the mimetype of a given file. + * + * @param string $path + * @return string|false file mime-type or FALSE when fails + * to fetch mime-type from existing file + */ + public function mimetype($path) + { + return $this->driver->getMimetype($path); + } + /** * Get the file's last modification time. *