i'm new meteor. , found there lost of option available image storing. , decided use package
collectionfs. in package stores file in collection. not want store image in collection , want upload in server folder.
is possible? how?
thanks,
you in luck, possible! please refer documentation:
https://github.com/collectionfs/meteor-collectionfs
in storage adapter section refers cfs:filesystem. allows save servers filesystem rather collection via gridfs. adapter , documentation can found here:
https://github.com/collectionfs/meteor-collectionfs/tree/devel/packages/filesystem
the implementation straight forward documentation.
as points out in documentation, can add common.js file:
var images = new fs.collection("images", { stores: [new fs.store.filesystem("images", {path: "~/uploads"})] });
this creates fs.collection called images stores images folded called uploads in project , creates collection tie uploads to. structucing project bit outside of scope of question, can more information here:
Comments
Post a Comment