Merge pull request #25012 from owncloud/gdrive-fixfilesizewithmimetypemismatch
Fix GDrive file size when mime type doesn't match contents
This commit is contained in:
commit
56215513e1
|
@ -326,7 +326,7 @@ class Google extends \OC\Files\Storage\Common {
|
||||||
$stat['size'] = 0;
|
$stat['size'] = 0;
|
||||||
} else {
|
} else {
|
||||||
// Check if this is a Google Doc
|
// Check if this is a Google Doc
|
||||||
if ($this->getMimeType($path) !== $file->getMimeType()) {
|
if ($this->isGoogleDocFile($file)) {
|
||||||
// Return unknown file size
|
// Return unknown file size
|
||||||
$stat['size'] = \OCP\Files\FileInfo::SPACE_UNKNOWN;
|
$stat['size'] = \OCP\Files\FileInfo::SPACE_UNKNOWN;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue