From 46f44928d8a5084367ec431c0086b7dc5748ae44 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 Jan 2022 12:06:26 +0530 Subject: [PATCH] add notes on nested folder drag-upload --- www/common/drive-ui.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 3b65fc4bf..d9550ac59 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1869,11 +1869,16 @@ define([ } else if (item.isDirectory) { // Get folder contents var dirReader = item.createReader(); + // this API is not supported in Opera or IE + // https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/webkitGetAsEntry + // all other browsers will recurse over subfolders and upload everything dirReader.readEntries(w(function(entries) { for (var i=0; i