I am trying to create an e-commerce site with an admin page where an administrator can upload images of certain products. I want Meteor to upload these images to a folder and then display these images on the product page of this product.
I know that usually the image files that will be used by the client should be inside the “public” folder, but I would like to know more about what other options I may have.
In addition, if I upload a new file to a “public” folder or if I delete a file in a “public” folder, the website will refresh ... and this is good and bad at the same time depending on what effect you are after. ...
Here are my questions:
- What if I create the "uploads" folder on the server and upload the images to this folder. Can I display images inside the uploads folder in the client’s browser? How??
- Is there a way to use a browser to access the contents of a "public" folder ???
- Is there a way to stop the site’s reactivity if changes occur in the uploads folder created?
- Does the image upload to the public folder the best solution available for this problem?
Thank you for help
image file-upload meteor
preston
source share