javascript - Find location of Meteor Assets -
i have folder on machine adding files while meteor app running. path of ~/uploads
. have been able utilize assets.getbinary()
private
folder not folder outside of meteor project. how utilize assets.getbinary()
location of file ~/uploads/foo
?
there no way send assets.getbinary()
path not descendent of private directory. if must maintain assets outside private directory, sharing them between applications, can symlink folder within private directory.
cd
private directory , run:
ln -s ~/uploads uploads
then can reference assets in ~/uploads
directory through path, example:
assets.getbinary("uploads/foo");
javascript meteor
No comments:
Post a Comment