diff --git a/app/assets/javascripts/discourse/app/components/pick-files-button.js b/app/assets/javascripts/discourse/app/components/pick-files-button.js index 465b869b933..5ecd4234488 100644 --- a/app/assets/javascripts/discourse/app/components/pick-files-button.js +++ b/app/assets/javascripts/discourse/app/components/pick-files-button.js @@ -91,6 +91,10 @@ export default Component.extend({ this.dialog.alert(message); return; } + + if (typeof this.onFilesPicked === "function") { + this.onFilesPicked(files); + } }, _haveAcceptedTypes(files) {