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.
2 parents 5b79351 + f65678c commit 823bb12Copy full SHA for 823bb12
lib/client/fileUpload.html
@@ -1,5 +1,5 @@
1
<template name="afFileUpload">
2
- <input value="{{fileId}}" type="hidden" {{this.atts}}>
+ <input value="{{fileId}}" type="hidden" {{inputAtts this}}>
3
{{#with uploadedFile}}
4
{{#if previewTemplate}}
5
{{>Template.dynamic template=previewTemplate}}
lib/client/fileUpload.js
@@ -111,6 +111,12 @@ Template.afFileUpload.helpers({
111
},
112
accept() {
113
return Template.instance().accept;
114
+ },
115
+ inputAtts(formContext) {
116
+ const { atts } = formContext;
117
+ if (!atts) return;
118
+ delete atts.insertConfig;
119
+ return atts;
120
}
121
});
122
0 commit comments