/**
 * Created by Trung on 3/12/2016.
 */
var cvStore = new FS.Store.GridFS("curriculumVitae", {
    //mongoUrl: 'mongodb://127.0.0.1:27017/test/', // optional, defaults to Meteor's local MongoDB
    //mongoOptions: {...},  // optional, see note below
    //transformWrite: myTransformWriteFunction, //optional
    //transformRead: myTransformReadFunction, //optional
    maxTries: 3, // optional, default 5
    chunkSize: 1024 * 1024  // optional, default GridFS chunk size in bytes (can be overridden per file).
                            // Default: 2MB. Reasonable range: 512KB - 4MB
});

CurriculumVitae = new FS.Collection("curriculumVitae", {
    stores: [cvStore]
});

CurriculumVitae.allow({
    download: function () {
        return true;
    },
    fetch: null
});