Help with res.sendFile()
SamuelWaller1 (0)

When I send the form submission, it gives this error:
TypeError: path must be absolute or specify root to res.sendFile

I looked it up and things said to put in __dirname, but that didn't work. What confuses me is that the example code does the exact same thing, and it works fine. I have no clue what's wrong.


You are viewing a single comment. View All
Answered by Vandesm14 (2728) [earned 5 cycles]
View Answer