Browsing uploaded pictures through the browser


#1

Am trying to access the uploaded image on the browser via a url but it all returns 404. Am using adonisjs as an api hence i would like to get the image url that is

I have uploaded the image successifully to tmp/uploads folder. But am unable to access it on the url via

     http://localhost:3033/uploads/mypic.jpg

I have also tried moving the image to storage folder and accessing it via
http://localhost:3033/storage/mypic.jpg

But still these fails. What am i missing out or how do i get the full url to access the imagefile on the browser


#2

You could always upload it to public folder, then you can find it in http://localhost:3033/mypic.jpg url.