I got the
ostrio:files package working in my application, so my images are uploading to the server (as far as I know) and the DB has a reference to them, but I don’t know how to actually serve them up. For example, I uploaded an image this morning. The DB contains the original name, and the file path that it exists at now:
The problem is, when I put that into the url, it just returns my app’s homepage. I tried changing the upload directory to be ‘/images/’ but still have the same issue. I can’t seem to find a clear answer in Meteor’s documentation on how to open up a path for images, aside from including them when you build the package, but that defeats the purpose of user-input.
I also have noticed that the
programs/web.browser/program.json file in my application seems to control what is allowed to be visible, but ideally, I would just like to open up my
/images directory to view any image (only direct paths, of course - I don’t want a directory listing). Is that a possibility?