From 438ff211e1cb4c7defd97a106197d79d7eda6085 Mon Sep 17 00:00:00 2001 From: ClemDee Date: Thu, 18 Jul 2019 16:11:19 +0200 Subject: [PATCH] Add condition to allow folder upload --- www/drive/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index 2018df703..bf01942f4 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -45,7 +45,7 @@ define([ editable: false, mobile: function () { return $('body').width() <= 600; }, // Menu and content area are not inline-block anymore for mobiles isMac: navigator.platform === "MacIntel", - allowFolderUpload: true, + allowFolderUpload: File.prototype.hasOwnProperty("webkitRelativePath"), }; var stringify = function (obj) {