We are trying to download a file by giving it the fully qualified path name. Using the API we set up we can only seem to download files from the Default/Public Space folder path that's on our EasyMorph host. (That is where our project for the endpoint is located) When we try to do it to any other location it doesn't seem to work. Is the API limited to only files on the EasyMorph host we have set up?
From what location do you want the files to be served? For security reasons, the API server restricts the ability to download files from elsewhere. If you still need to provide a file from somewhere else, the workflow that processes the API calls can copy it to a temporary folder inside the public folder, and then make it downloadable from there. Don't forget to clean up the temporary folder.
Thank you, this is helpful to know. We will try to use the temporary location to see if that works. We are trying to download a file from a file share.
Another option is to use the Custom API Server.
You can configure the Custom API endpoint to return a file download by adding a Construct HTTP Response step to the endpoint’s workflow.