Skip to content

GridFS storage adapter for CollectionFS

License

Notifications You must be signed in to change notification settings

vsivsi/Meteor-cfs-gridfs

Repository files navigation

cfs-gridfs

NOTE: This package is under active development right now (2014-2-20). It has bugs and the API may continue to change. Please help test it and fix bugs, but don't use in production yet.

A Meteor package that adds GridFS-like storage for CollectionFS. When you use this storage adapter, file data is stored in chunks in a Meteor.Collection in your MongoDB database.

Installation

Install using Meteorite. When in a Meteor app directory, enter:

$ mrt add cfs-gridfs

Usage

var imageStore = new FS.Store.GridFS("images", {
  beforeSave: myBeforeSaveFunction, //optional
  maxTries: 1 //optional, default 5
});

Images = new FS.Collection("images", {
  stores: [imageStore]
});

Refer to the CollectionFS package documentation for more information.

Notes

A GridFS store does not currently support the sync option.

API

For Users

For Contributors

About

GridFS storage adapter for CollectionFS

Resources

License

Stars

Watchers

Forks

Packages

No packages published