We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da7ff0 commit 65a48aeCopy full SHA for 65a48ae
app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/image-uploader.js
@@ -85,10 +85,11 @@ define([
85
* {@inheritDoc}
86
*/
87
isFileAllowed: function () {
88
- var result = this._super();
+ var result = this._super(),
89
+ allowedExtensions = this.getAllowedFileExtensionsInCommaDelimitedFormat();
90
91
if (!result.passed && result.rule === 'validate-file-type') {
- result.message += (' ' + this.translations.allowedFileTypes + ': ' + this.getAllowedFileExtensionsInCommaDelimitedFormat() + '.');
92
+ result.message += ' ' + this.translations.allowedFileTypes + ': ' + allowedExtensions + '.';
93
}
94
return result;
95
},
0 commit comments