Can't export CSV file to a folder in app directory unless it is in the 'public' folder

Wappler Version : 3.5.6
Operating System : Win10
Server Model: NodeJS
Database Type: PostgreSQL
Hosting Type: Docker

Expected behavior

What do you think should happen?
I thought you could export a CSV file to a folder inside your app structure, event if it wasn’t in the public folder.

Actual behavior

What actually happens?

If i try to export to say app > exports > file.csv then i get the below error:

{"status":"500","code":"ENOENT","message":"ENOENT: no such file or directory, open '/opt/node_app/exports/historical_data.csv'","stack":"Error: ENOENT: no such file or directory, open '/opt/node_app/exports/historical_data.csv'"}

How to reproduce

Create a DB query
Create an export to CSV step
Select a filepath that is inside the app strcuture, but NOT in the public folder.

This is my step:

image

I have tried this with or without Overwrite and with or without the file existing. They all work fine if exporting to the public folder but not outside the public folder.

Community Page
Last updated: