Skip to content

Easily upload images to Meteor using Cloudinary and Simple Schema

Notifications You must be signed in to change notification settings

ipstas/autoform-cloudinary

 
 

Repository files navigation

Autoform Cloudinary

Extends autoform with a cloudinary storage

Installation

In a Meteor app directory, enter:

$ meteor add ipstas:autoform-cloudinary

Example usage

SomeSchema = new SimpleSchema({
    picture: {
			type: String,
			autoform: {
				afFieldInput: {
					type: 'cloudinary'
				}
			}
    }
});

Settings

{
	"public": {
		"cloudinary":{
			"config": {
				"api_key": "xxxx",
				"cloud_name": "cloudName",
				"upload_preset": "presetSigned", // for signed upload
				"folder": "",
				"preset": "qdfxtg1y", // for unsigned
			},
			"options": {
				"autoUpload": false,
				"resource_type": "auto",
				"limitMultiFileUploads": 3,
				"limitConcurrentUploads": 2,
				"maxFileSize": 4000000,
				"uniq" : "true",
				"tags": "tag",
				"unique_filename": true
			}
		},
	"private":{
		"cloudinary": {
			"api_secret": "long_secret"
		}
	}
}

About

Easily upload images to Meteor using Cloudinary and Simple Schema

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.9%
  • HTML 11.9%
  • CSS 0.2%