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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -