meteor-uploads icon indicating copy to clipboard operation
meteor-uploads copied to clipboard

Custom template formData helpers

Open misteio opened this issue 9 years ago • 2 comments

Hello, thank you for this Package.

It seems to miss on the custom template example a little code for the "formData" in helpers.

You should add it :) .

'submitData': function() {
        if (this.formData) {
            this.formData['contentType'] = this.contentType;
        } else {
            this.formData = {contentType: this.contentType};
        }
        return typeof this.formData == 'string' ? this.formData : JSON.stringify(this.formData);
    }
}

misteio avatar Jan 14 '16 10:01 misteio

Where do you mean? In the documentation? Thanks.

tomitrescak avatar Feb 02 '16 07:02 tomitrescak

Yes in documentation :+1:

misteio avatar Feb 02 '16 08:02 misteio