Hi everybody.
I have a Web Server created on render (NodeJS - Express) , in which I upload image files to a folder created by the api itself. This folder is created inside api/ project folder, and I need the full path of it. The thing is, when I use __dirname I get “/opt/render/project/src/api/folder”, which is a relative path and I use a base64 library that needs full path to the folder in which I pretend to save my image, but it is crashing right now.
How could I get the full path of this folder?
Thanks in advance for support.