Hi everyone,
I use Node.JS for the backend and I have a problem that I can't solve about downloading files via API with dynamic parameters.
Here's what I did:
- I created an API with a GET parameter iddoc (pic1)
- I created a new routing connected to the connect server (pic2)
- On the page I created the link with the dynamic parameter by reading the id from the repeat (pic3)
- When I click on the button the error you see in screenshot 4 comes out
At this point I tried to set a static path because I feared that the error was due to the fact that the file is not in the public folder but in a private folder since the files must not be reachable from the url.
With the static path the download works.
I tried to create a dynamic variable to verify that the dynamic path was correct and I get exactly the same result (pic5/6)