mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #22408 from owncloud/gdrive-remove-mimetype-detection
Fix GDrive mime type detection with encryption
This commit is contained in:
commit
bfd4a9548b
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue