0đź‘Ť
There’s multiple way to get this image accessible via the browser.
-
You create a
route
within Adonis to handle a “media” route (like~/media/1500586654324.jpg
). This route will take the image ID and send the correspondant image inside yourstorage
folder. -
You don’t upload your image to your
storage
folder and instead put them directly into thepublic
folder of your application that means you can access the image directly via its URL.
I prefer using the first option since my public
directory is 100% generated via script.
- [Vuejs]-How to use the concatenate names of the elements/options in one function in vue-select
- [Vuejs]-How to deal with in multi components to fetch data in Vue.js?
Source:stackexchange.com