Get static url path to get image


#1

I have uploads an image to Helpers.tmpPath('uploads') and how to get the path from the api url. ex: localhost:3333/tmp/uploads/image.jpg
When I use Helpers.tmpPath('image.jpg') it returns the path from /home/.../.../.../image.jpg not from the project path


#2

solved with use return${Env.get(‘APP_URL’)/uploads/${fileName}}


#3

where you put that code


#4

in the controller, i use Helpers.publicPath('images/users')