display image from local drive
Opened this issue · 1 comments
YouSour commented
hi , i'm using cfs:filesystem for store files and i put path for keep image files on my local drive , everything good , but i didn't know how to get image url and display image on browser from my path local drive. have any idea about this .
const Files = new FS.Collection("files", {
stores: [new FS.Store.FileSystem("filesStore",{path: '~/Desktop/uploadImageDirectory'})]
});
nooitaf commented
The local path should not be send to the user as in normal server contitions it would be useless. You want a path inside you pages scope. You could call something like Files.findOne().url()
to get the path.
https://github.com/CollectionFS/Meteor-CollectionFS#url
Here is an old example project which might help: https://github.com/nooitaf/cfs-imagetest-100