]> source.dussan.org Git - nextcloud-server.git/commit
Don't lie about the preview mimetype
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 4 Jan 2018 09:00:07 +0000 (10:00 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 8 Jan 2018 19:39:39 +0000 (20:39 +0100)
commit50b880edeba3166cd7718c1fb3447f618194337b
tree4b555f45624d4f86b2c9b9709e96d9b92fe6874c
parente23491dc4202b0f6b357fb9df09d42357e63d6cb
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>
lib/private/Preview/Generator.php
lib/private/legacy/image.php
lib/public/IImage.php
tests/lib/Preview/GeneratorTest.php