diff --git a/modules/Cockpit/assets/components.js b/modules/Cockpit/assets/components.js
index cd127af1a..a3fdef085 100755
--- a/modules/Cockpit/assets/components.js
+++ b/modules/Cockpit/assets/components.js
@@ -1872,7 +1872,7 @@ riot.tag2('field-asset', '
action: App.route('/assetsmanager/upload'),
type: 'json',
filelimit: 1,
- allow: (this.opts.upload && this.opts.upload.allow) || '*.*',
+ allow: $this.pattern,
before: function(options) {
},
diff --git a/modules/Cockpit/assets/components/field-asset.tag b/modules/Cockpit/assets/components/field-asset.tag
index 9b2fe6a60..3b20adcbe 100644
--- a/modules/Cockpit/assets/components/field-asset.tag
+++ b/modules/Cockpit/assets/components/field-asset.tag
@@ -89,7 +89,7 @@
action: App.route('/assetsmanager/upload'),
type: 'json',
filelimit: 1,
- allow: (this.opts.upload && this.opts.upload.allow) || '*.*',
+ allow: $this.pattern,
before: function(options) {
},