Skip to content

Fauphi/meteor-autoform-base64-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Base64 image type for Meteor-Autoform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published