Fix GDrive mime type detection with encryption
When encryption is enabled, GDrive would think that all files are text files. This fix falls back to the extension based detection when a non-special mime type is returned
This commit is contained in:
parent
46b39c3465
commit
d38b71f206
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue