diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-04 10:00:07 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-07 11:41:54 +0100 |
commit | 5b216500976019734e67b3edd8b17c8e18c9c8cc (patch) | |
tree | 317639e279432da92108fcd980883c664f932210 /lib/public | |
parent | f25e51c3691e8dce3c0f6c8ed56f4effa9ebb0dc (diff) | |
download | nextcloud-server-5b216500976019734e67b3edd8b17c8e18c9c8cc.tar.gz nextcloud-server-5b216500976019734e67b3edd8b17c8e18c9c8cc.zip |
Don't lie about the preview mimetype
For legacy reasons we stored all the previews with a png extention.
However we did not put png data in them all the time.
This caused the preview endpoints to always report that a preview is a
png file. Which was a lie.
Since we abstract away from the storage etc in the previewmanager. There
is no need anymore to store them as .png files and instead we can use
the actual file extention.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IImage.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/IImage.php b/lib/public/IImage.php index f63a1b8ca60..70e8b3cff75 100644 --- a/lib/public/IImage.php +++ b/lib/public/IImage.php @@ -103,6 +103,12 @@ interface IImage { public function resource(); /** + * @return string Returns the raw data mimetype + * @since 13.0.0 + */ + public function dataMimeType(); + + /** * @return string Returns the raw image data. * @since 8.1.0 */ |