Merge pull request #22408 from owncloud/gdrive-remove-mimetype-detection

Fix GDrive mime type detection with encryption
This commit is contained in:
Thomas Müller 2016-02-18 10:14:01 +01:00
commit bfd4a9548b

View file

@ -520,7 +520,8 @@ class Google extends \OC\Files\Storage\Common {
// Download as .odp is not available
return 'application/pdf';
} else {
return $mimetype;
// use extension-based detection, could be an encrypted file
return parent::getMimeType($path);
}
} else {
return false;