diff options
Diffstat (limited to 'lib/public/Files/IMimeTypeDetector.php')
-rw-r--r-- | lib/public/Files/IMimeTypeDetector.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/Files/IMimeTypeDetector.php b/lib/public/Files/IMimeTypeDetector.php index 3d26860c744..3686405b529 100644 --- a/lib/public/Files/IMimeTypeDetector.php +++ b/lib/public/Files/IMimeTypeDetector.php @@ -40,10 +40,18 @@ interface IMimeTypeDetector { * @param string $path * @return string * @since 8.2.0 - **/ + */ public function detectPath($path); /** + * detect mimetype only based on the content of file + * @param string $path + * @return string + * @since 18.0.0 + */ + public function detectContent(string $path): string; + + /** * detect mimetype based on both filename and content * * @param string $path |