Base64 image type for Meteor-Autoform.
- Simple image upload for autoform. Converts image to Base64 and saves it as a string.
meteor add fauphi:autoform-base64-img
Blog.attachSchema(new SimpleSchema({
titlePhoto: {
type: String,
label: "Title photo",
autoform: {
afFieldInput: {
type: 'fileupload'
}
}
},
}));
{{> quickForm collection="Blog" type="insert"}}
{{#with blogEntry}}
<img src="{{titlePhoto}}" width="100%"/>
{{/with}}
- Styling