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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -