Created
January 2, 2015 08:57
-
-
Save Neobii/c28c42145af56ef4db58 to your computer and use it in GitHub Desktop.
CFS Upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----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