Skip to content

Instantly share code, notes, and snippets.

@Neobii
Created January 2, 2015 08:57
Show Gist options
  • Save Neobii/c28c42145af56ef4db58 to your computer and use it in GitHub Desktop.
Save Neobii/c28c42145af56ef4db58 to your computer and use it in GitHub Desktop.
CFS Upload
//----SCHEMA
mp3Id: {
type: String,
label: "MP3 File",
autoform: {
afFieldInput: {
type: "cfs-file",
collection: "audioTracks"
}
}
},
//-----collectionFS stuff
AudioTracks = new FS.Collection("audioTracks", {
stores: [new FS.Store.GridFS("audioTracksStore")]
});
AudioTracks.allow({
download: function () {
return true;
},
fetch: null
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment