javascript - fetching image from external location in meteor -
i building meteor app, allows user upload images. images upload stored in "/tmp/images/" directory in local system.
how can display images above directory. far, have seen displaying images "public" directory in meteor. if start adding images uploaded user in "public", everytime user uploads image, server refreshed.
so want display images "/tmp/images/" rather.
any idea?
there no other way fetch images directories outside project folder. reason meteor has built "public" directory us. path "/" indicates beginning of project folder. if storing images in locations amazon s3, hitting url in tag fetch image.
so bottom line either u put ur images in public folder or store images in outside location can fetched hitting image url.
and don't worry refresh, not happen in production mode. happens in development mode.
Comments
Post a Comment