How to store images with Meteor on Herokuapp -
problem: store images location using filescollection (ostrio:files)
setup:
import { filescollection } 'meteor/ostrio:files'; images = new filescollection({ collectionname : 'images', storagepath : "./photos", downloadroute : "/photos", allowclientcode : true, // required let remove uploaded file debug : false, public : true });
note: tried setting store path to: process.env.pwd + '/photos'
, "/public/images"
, , everywhere else think of!
target location: want save files "/public/photos/"
note 2: noticed images links become broken after each new deployment, is, if uploaded image link becomes life until next deployment.
ps: i'm using meteor 1.5, horse-buildpack, mlab db
Comments
Post a Comment