Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 681 Bytes

README.md

File metadata and controls

43 lines (35 loc) · 681 Bytes

meteor-autoform-base64-img

Base64 image type for Meteor-Autoform.

Features

  • Simple image upload for autoform. Converts image to Base64 and saves it as a string.

Usage

Install

meteor add fauphi:autoform-base64-img

Simple Schema

Blog.attachSchema(new SimpleSchema({
    titlePhoto: {
        type: String,
        label: "Title photo",
        autoform: {
            afFieldInput: {
                type: 'fileupload'
            }
        }
    }, 
}));

Autoform

{{> quickForm collection="Blog" type="insert"}}

Template

{{#with blogEntry}}
  <img src="{{titlePhoto}}" width="100%"/>
{{/with}}

Todos

  • Styling