summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/Lib/Storage/Google.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Google.php b/apps/files_external/lib/Lib/Storage/Google.php
index 13e89299c22..9e5409e226e 100644
--- a/apps/files_external/lib/Lib/Storage/Google.php
+++ b/apps/files_external/lib/Lib/Storage/Google.php
@@ -57,6 +57,7 @@ class Google extends \OC\Files\Storage\Common {
const SPREADSHEET = 'application/vnd.google-apps.spreadsheet';
const DRAWING = 'application/vnd.google-apps.drawing';
const PRESENTATION = 'application/vnd.google-apps.presentation';
+ const MAP = 'application/vnd.google-apps.map';
public function __construct($params) {
if (isset($params['configured']) && $params['configured'] === 'true'
@@ -267,10 +268,12 @@ class Google extends \OC\Files\Storage\Common {
$name = $child->getTitle();
// Check if this is a Google Doc i.e. no extension in name
$extension = $child->getFileExtension();
- if (empty($extension)
- && $child->getMimeType() !== self::FOLDER
- ) {
- $name .= '.'.$this->getGoogleDocExtension($child->getMimeType());
+ if (empty($extension)) {
+ if ($child->getMimeType() === self::MAP) {
+ continue; // No method known to transfer map files, ignore it
+ } else if ($child->getMimeType() !== self::FOLDER) {
+ $name .= '.'.$this->getGoogleDocExtension($child->getMimeType());
+ }
}
if ($path === '') {
$filepath = $name;