summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib')
-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 806033a2c37..7e014b0a44c 100644
--- a/apps/files_external/lib/Lib/Storage/Google.php
+++ b/apps/files_external/lib/Lib/Storage/Google.php
@@ -56,6 +56,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'
@@ -266,10 +267,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;