diff --git a/Duplicati/Server/webroot/scripts/editdialog.js b/Duplicati/Server/webroot/scripts/editdialog.js index 691d4b98b..5fae1f2c2 100644 --- a/Duplicati/Server/webroot/scripts/editdialog.js +++ b/Duplicati/Server/webroot/scripts/editdialog.js @@ -710,4 +710,91 @@ $(document).ready(function() { APP_UTIL.fill_form($('#edit-dialog-form'), data['Backup'][d], EDIT_BACKUP.fill_form_map, d); }); + /* + + Too bad, we can drop files and folders, + but not read the paths, only the contents. + That seems to make sense for web apps, + but not cross-local like this + + if(window.FileReader) { + var dragHandler = function(e) { + e = e || window.event; + + if (e.preventDefault) { e.preventDefault(); } + + var dt = e.dataTransfer; + if (!dt && e.originalEvent) + dt = e.originalEvent.dataTransfer; + + if (dt != null) + { + var allFiles = true; + for (var i=0; i