Attachments in assets folder using node docker

Wappler Version : 3.4
Operating System : mac / docker desktop node

Expected behavior

Selecting an image within the assets folder, should be attached to emails.

Actual behavior

{"status":"500","code":"ESTREAM","message":"ENOENT: no such file or directory, open '/opt/node_app/assets/img/nature-4.jpg'","stack":"Error: ENOENT: no such file or directory, open '/opt/node_app/assets/img/nature-4.jpg'"}

How to reproduce

Screen Shot 2020-10-15 at 9.23.29 AM

I have re-deployed, but no change.

Hmm I think the path should be prefixed with /public when you are picking from the public folder, as in NodeJS all paths are app root relative

Makes sense…and also shows up here:

Fixed in Wappler 3.4.1

This topic was automatically closed after 25 hours. New replies are no longer allowed.