Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/client/fileUpload.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template name="afFileUpload">
<input value="{{fileId}}" type="hidden" {{this.atts}}>
<input value="{{fileId}}" type="hidden" {{inputAtts this}}>
{{#with uploadedFile}}
{{#if previewTemplate}}
{{>Template.dynamic template=previewTemplate}}
Expand Down
6 changes: 6 additions & 0 deletions lib/client/fileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ Template.afFileUpload.helpers({
},
accept() {
return Template.instance().accept;
},
inputAtts(formContext) {
const { atts } = formContext;
if (!atts) return;
delete atts.insertConfig;
return atts;
}
});

Expand Down