diff --git a/src/Dropbox/DropboxFile.php b/src/Dropbox/DropboxFile.php index 551aa6a..4b9c225 100644 --- a/src/Dropbox/DropboxFile.php +++ b/src/Dropbox/DropboxFile.php @@ -331,6 +331,6 @@ public function getSize() */ public function getMimetype() { - return \GuzzleHttp\Psr7\mimetype_from_filename($this->path) ?: 'text/plain'; + return \GuzzleHttp\Psr7\MimeType::fromFilename($this->path) ?: 'text/plain'; } }