diff --git a/api/js/etemplate/et2_widget_file.js b/api/js/etemplate/et2_widget_file.js index 3d24d78af4..fe403ff0d5 100644 --- a/api/js/etemplate/et2_widget_file.js +++ b/api/js/etemplate/et2_widget_file.js @@ -146,6 +146,9 @@ var et2_file = /** @class */ (function (_super) { this.input.attr("multiple", "multiple"); } this.setDOMNode(this.node[0]); + // set drop target to widget dom node if no target option is specified + if (!this.options.drop_target) + this.resumable.assignDrop([this.getDOMNode()]); }; /** * Get any specific async upload options diff --git a/api/js/etemplate/et2_widget_file.ts b/api/js/etemplate/et2_widget_file.ts index 5abc7bbe47..1cfbbb433a 100644 --- a/api/js/etemplate/et2_widget_file.ts +++ b/api/js/etemplate/et2_widget_file.ts @@ -237,6 +237,8 @@ export class et2_file extends et2_inputWidget } this.setDOMNode(this.node[0]); + // set drop target to widget dom node if no target option is specified + if (!this.options.drop_target) this.resumable.assignDrop([this.getDOMNode()]); } /** diff --git a/filemanager/templates/default/index.xet b/filemanager/templates/default/index.xet index 8558d1c102..e6245dba73 100644 --- a/filemanager/templates/default/index.xet +++ b/filemanager/templates/default/index.xet @@ -45,7 +45,7 @@