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 f04039b commit 2171a2dCopy full SHA for 2171a2d
lib/client/fileUpload.js
@@ -15,6 +15,7 @@ const defaultInsertOpts = {
15
};
16
17
Template.afFileUpload.onCreated(function () {
18
+ const self = this;
19
if (!this.data) {
20
this.data = {
21
atts: {}
@@ -41,8 +42,8 @@ Template.afFileUpload.onCreated(function () {
41
42
throw new Meteor.Error(404, '[meteor-autoform-files] No such collection "' + this.data.atts.collection + '"');
43
}
44
- this.collectionName = () => {
45
- return this.data.atts.collection;
+ this.collectionName = function () {
46
+ return self.data.atts.collection;
47
48
49
this.currentUpload = new ReactiveVar(false);
0 commit comments